How to solve Does your handler implement a supported interface like Controller? exception


      Click here to attend Spring Framework 4.x and certification course with a discount

If you get the following exception after adding the

<mvc:view-controller path=”/index.htm” view-name=”index”/>

tag inside Spring’s framework configuration file, you need to add another tag like;

<mvc:annotation-driven />

this will activate your annotations for the Spring Project.

javax.servlet.ServletException: No adapter for handler controller.TestController@1854b38]: Does your handler implement a supported interface like Controller? org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:967) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:760) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Advertisements

3 thoughts on “How to solve Does your handler implement a supported interface like Controller? exception

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s