亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

java - eclipse run on server, classpath, not find springmvc.xml

瀏覽:104日期:2023-12-12 09:06:40

問題描述

eclipse:Neon

tomcat:9

在學習SpringMVC時,eclipse創建動態web項目 創建config(source folder)和src同級 在config目錄下創建配置文件springmvc.xml,并在web.xml中加載java - eclipse run on server, classpath, not find springmvc.xml

項目run as-》run configurationjava - eclipse run on server, classpath, not find springmvc.xml報錯:Type Exception Report

Message Servlet.init() for servlet [springmvc] threw exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [sprigmvc.xml]; nested exception is java.io.FileNotFoundException: class path resource [sprigmvc.xml] cannot be opened because it does not exist

run as -》 run configuration配置classpath,添加projectjava - eclipse run on server, classpath, not find springmvc.xml還是報找不到springmvc.xml in classpathCaused by: java.io.FileNotFoundException: class path resource [sprigmvc.xml] cannot be opened because it does not existjava - eclipse run on server, classpath, not find springmvc.xml

問題解答

回答1:

springmvc.xml路徑錯了,導致無法找到xml文件,讀取失敗

回答2:

解決了,因為沒有設置環境變量classpath.;%JAVA_HOME%libdt.jar;%JAVA_HOME%libtools.jar

標簽: java
主站蜘蛛池模板: 青青国产成人久久激情911 | 国产福利专区 | 亚洲日本人成网站在线观看 | 香蕉网站在线观看 | 日批网站在线观看 | 久久精品女人毛片国产 | 综合精品一区 | 午夜精品在线观看 | 一级特黄国产高清毛片97看片 | 九九香蕉 | 国内精品久久久久影院薰衣草 | 青草国产精品久久久久久 | 久久精品视频2 | 中国一级簧色 | 操比大片 | 国产一级片在线 | 午夜影院一区二区 | 毛片免费观看日本中文 | 国内亚州视频在线观看 | 青青草视频破解版 | 免费看在线偷拍视频 | 精品久久国产老人久久综合 | 国产精品麻豆网站 | 亚洲欧美综合色区小说 | 91成人影院未满十八勿入 | 黄色片子在线观看 | 欧美日韩在线观看区一二 | 国产乱码一区二区三区四区 | 免费一级欧美片片线观看 | 欧美激情特级黄aa毛片 | 日韩精品1区| 日韩免费无砖专区2020狼 | 男女又黄又刺激黄a大片桃色 | 香蕉视频在线观看免费国产婷婷 | 欧美做爱毛片 | 91久久国产综合精品 | 欧美在线观看成人高清视频 | 国产高清视频 | 国产精品dvd| 综合 欧美 亚洲日本 | 色悠久久久 |