访问报错 HTTP Status 500 - No adapter for handler

访问报错 HTTP Status 500 - No adapter for handler

访问报错HTTP Status 500 - No adapter for handler [[email protected]]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler


是因为使用注解时,需要添加@Controller,而不使用注解时需要实现Controller接口,使得前端控制器能找到HandlerAdapter 处理该handle路径