Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component-scan #3

Open
imperio-wxm opened this issue Aug 29, 2016 · 0 comments
Open

component-scan #3

imperio-wxm opened this issue Aug 29, 2016 · 0 comments

Comments

@imperio-wxm
Copy link

imperio-wxm commented Aug 29, 2016

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"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant