刚刚学习aop时,aop配置老是报错

yangjianliu 发布于 2016/03/22 15:54
阅读 348
收藏 0
三月 22, 2016 11:48:58 上午 org.springframework.web.servlet.DispatcherServlet noHandlerFound
警告: No mapping found for HTTP request with URI [/cloudnote/user/regist.do] in DispatcherServlet with name 'spring'


在web.xml中也没发现问题

<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-*.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>


加载中
0
稻谷
稻谷
 你这个明显的http请求路径错误啊。跟aop web.xml都没关系啊。
0
OSChina丨你的笑忘书
OSChina丨你的笑忘书
DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [/cloudnote/user/regist.do] in DispatcherServlet with name 'spring'



0
阿信sxq
阿信sxq
请求的控制器找不到,你看看你的配置对不对
0
maradona
maradona
springmvc配置错了?
0
lyle_luo
lyle_luo
No mapping found for HTTP request with URI [/cloudnote/user/regist.do]
返回顶部
顶部