課程
/后端開發
/Java
/Shiro安全框架入門
啟動成了? 訪問不到是怎么回事
2019-07-24
源自:Shiro安全框架入門 4-1
正在回答
<?xml?version="1.0"?encoding="UTF-8"?> <web-app?version="2.5" ?????????xmlns="http://java.sun.com/xml/ns/javaee" ?????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ?????????xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> ?? ????<context-param> ????????<param-name>contextConfigLocation</param-name> ????????<param-value>classpath*:spring/spring.xml</param-value> ????</context-param> ????<listener> ????????<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> ????</listener> ????<listener> ????????<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> ????</listener> ????<filter> ??????????<filter-name>shiroFilter</filter-name> ??????????<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> ????</filter> ????<filter-mapping> ????????<filter-name>shiroFilter</filter-name> ????????<url-pattern>/*</url-pattern> ????</filter-mapping> ????<servlet> ????????<servlet-name>spring-mvc</servlet-name> ????????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> ????????<init-param> ????????????<param-name>contextConfigLocation</param-name> ????????????<param-value>classpath*:spring/spring-mvc.xml</param-value> ????????</init-param> ????????<load-on-startup>1</load-on-startup> ????</servlet> ????<servlet-mapping> ????????<servlet-name>spring-mvc</servlet-name> ????????<url-pattern>/</url-pattern> ????</servlet-mapping> </web-app>
web.xml
qq_Brave_Cui_0
舉報
從零入門Shiro安全框架
1 回答啟動tomcat之后 報錯了
1 回答加了/*=authc之后,啟動tomcat自動打開index.jsp頁面
6 回答啟動報錯,啟動不了
1 回答啟動貓報錯了
1 回答登錄成功后不能訪問跟路徑的首頁
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-07-31
web.xml