1. 程式人生 > >web.xml配置監聽器來進行shiro攔截

web.xml配置監聽器來進行shiro攔截

<servlet>
		<servlet-name>PSCmsAdmin</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>
				classpath:config/jeecms-servlet-admin.xml
			</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
</servlet>


<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:config/shiro-context.xml
        </param-value>
</context-param>