bkielczewski / example-spring-mvc-jetty

79 stars 49 forks source link

component-scan #3

Open imperio-wxm opened 8 years ago

imperio-wxm commented 8 years ago

Can I use springmvc.xml like original spring mvc?

I can not get controller.

such as:

//controller

@RequestMapping("jsp")
 public void ajaxController(String name, HttpServletResponse response) throws IOException {
    if ("test".equals(name)) {
        response.getWriter().print("true");
     } else {
        response.getWriter().print("false");
     }
}
//springmvc.xml

<context:component-scan base-package="com.test.controller"/>