恼人的No mapping found for HTTP request with URI解决了
来源:互联网 发布:lurker软件多少钱一个 编辑:程序博客网 时间:2024/06/05 18:13
开始学习Spring MVC,代码和配置文件都是按照网上的教程一步一步来,检查了无数遍肯定没有敲错,但是放到Tomcat上一跑就报“No mapping found for HTTP request with URI”
网上搜了很多文章,说的方法基本是两个:
1、修改web.xml <url-pattern>/*</url-pattern>为<url-pattern>/</url-pattern>(去掉*)
2、给dispatcher-servlet.xml添加<mvc:default-servlet-handler/>
这些方法我都试验了,都无效。
最终解决方法是,在Maven中添加“jstl”依赖
<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl -->
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
成功!!!
阅读全文
0 0
- 恼人的No mapping found for HTTP request with URI解决了
- No mapping found for HTTP request with URI完美解决
- 不一样的No mapping found for HTTP request with URI
- 深恶痛绝的No mapping found for HTTP request with URI
- 解决spring mvc No mapping found for HTTP request with URI错误的三种方法
- 解决 No mapping found for HTTP request with URI的方法
- 解决spring mvc No mapping found for HTTP request with URI错误的三种方法
- STS error: No mapping found for HTTP request with URI
- Spring MVC No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- no mapping found for http request with uri
- spring No mapping found for HTTP request with URI
- mark springmvc [No mapping found for HTTP request with URI]
- No mapping found for HTTP request with URI
- springMVC No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- No mapping found for HTTP request with URI
- 关于srand((unsigned)time(NULL))
- 红黑树
- 青岛之行
- sqoop连接mysq了,用root用户报错,换成普通用户就可以了。
- 完数java实现
- 恼人的No mapping found for HTTP request with URI解决了
- 十一月八日课堂笔记-JavaScript基础
- 理解html移动端开发屏幕适配问题(包括小程序)
- 图的操作之一--创建
- adb启动程序命令:adb shell am start
- 继承
- xmysql:可为MySql生成REST API的神奇命令
- Linux 一些常用命令
- Flume持久化本地sink配置