spring mvc项目原来用myeclipse启动改为idea启动,启动成功后访问网站报404

原来mvc项目在用myeclipse启动,pom里少引用servlet的依赖,pom没有加载静态资源,需要更改pom文件 1.增加servlet的依赖 <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <
相关文章
相关标签/搜索