使用SpringMvc时出现如下异常,是什么原因?

javame 发布于 2015/02/04 09:54
阅读 1K+
收藏 0

MySQL连接为什么挂死了?别踩坑!>>>

  • 二月 04, 2015 9:46:37 上午 org.apache.catalina.core.StandardWrapperValve invoke
    严重: Servlet.service() for servlet [springmvc] in context with path [/infor_manager] threw exception [No adapter for handler [public int controller.UsersController.register(java.lang.String)]: Does your handler implement a supported interface like Controller?] with root cause
    javax.servlet.ServletException: No adapter for handler [public int controller.UsersController.register(java.lang.String)]: Does your handler implement a supported interface like Controller?
    at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1100)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:893)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

加载中
0
盲人摸象
盲人摸象
你的控制器没有被springMVC发现(没有添加@Controller注解定义控制器),或许是你没有添加注解配置。
0
甘薯
甘薯
http://blog.csdn.net/kkdelta/article/details/7286622
返回顶部
顶部