午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術文章
文章詳情頁

java - idea提示 org.springframework.web.context.ContextLoaderListener沒找到

瀏覽:153日期:2024-01-23 13:43:55

問題描述

java - idea提示 org.springframework.web.context.ContextLoaderListener沒找到

web.xml

<?xml version='1.0' encoding='UTF-8'?><web-app xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://java.sun.com/xml/ns/javaee' xmlns:web='http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd' xsi:schemaLocation='http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd' version='2.5'> <display-name>SalamanderBBS</display-name> <!-- 起始歡迎界面 --> <welcome-file-list><welcome-file /> </welcome-file-list> <!-- 讀取spring配置文件 --> <context-param><param-name>contextConfigLocation</param-name><param-value>classpath:spring-mybatis.xml</param-value> </context-param> <!-- 設計路徑變量值 --> <context-param><param-name>webAppRootKey</param-name><param-value>springmvc.root</param-value> </context-param> <!-- Spring字符集過濾器 --> <filter><filter-name>SpringEncodingFilter</filter-name><filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class><init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value></init-param><init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value></init-param> </filter> <filter-mapping><filter-name>SpringEncodingFilter</filter-name><url-pattern>/*</url-pattern> </filter-mapping> <listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- springMVC核心配置 --> <servlet><servlet-name>dispatcherServlet</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class><init-param> <param-name>contextConfigLocation</param-name> <!--spingMVC的配置路徑 --> <param-value>classpath:spring-mvc.xml</param-value></init-param><load-on-startup>1</load-on-startup> </servlet> <!-- 攔截設置 --> <servlet-mapping><servlet-name>dispatcherServlet</servlet-name><url-pattern>/</url-pattern> </servlet-mapping> <!-- 錯誤跳轉頁面 --> <error-page><!-- 路徑不正確 --><error-code>404</error-code><location>/WEB-INF/view/errpage/404.jsp</location> </error-page> <error-page><!-- 沒有訪問權限,訪問被禁止 --><error-code>405</error-code><location>/WEB-INF/view/errpage/405.jsp</location> </error-page> <error-page><!-- 內部錯誤 --><error-code>500</error-code><location>/WEB-INF/view/errpage/500.jsp</location> </error-page></web-app>

項目結構:

java - idea提示 org.springframework.web.context.ContextLoaderListener沒找到

問題解答

回答1:

解決了:File > Project Structure > Artifacts > 在右側Output Layout右擊項目名,選擇Put into Output Root,見下面截圖:

java - idea提示 org.springframework.web.context.ContextLoaderListener沒找到

標簽: java
相關文章:
主站蜘蛛池模板: 黄色网页在线看 | 色婷婷久久综合 | 97福利视频 | 欧美大白屁股 | 亚洲精品欧美日韩 | av免费网站在线观看 | 在线观看亚洲大片短视频 | 嫩草在线观看视频 | 污黄在线观看 | 亚洲在线| 亚洲天天综合 | 国产精品一区二三区 | 一区二区三区视频在线免费观看 | 免费激情小视频 | 国产高潮呻吟 | 日本免费色 | 中文一二三区 | 毛片视频网站 | 九九热在线播放 | 免费成人结看片 | 欧美字幕 | 免费的黄色的网站 | 高清在线一区 | 国产男女精品 | 欧美18免费视频 | 免费不卡视频 | 九九热精品视频在线播放 | 成年人精品 | 中国黄色一级视频 | 久久久美女 | av日日夜夜| 日日弄天天弄美女bbbb | 一区二区成人在线 | 色婷婷丁香 | 欧美黄色aaa | 亚洲一区二区三区在线播放 | a√天堂网 | 91丨九色丨黑人外教 | 日韩精品国产一区 | 日韩中文网| 国产在线观看h |