SpringBoot启动报错The DispatcherServlet configuration needs to include a HandlerAdapter that supports th

There was an unexpected error (type=Internal Server Error, status=500).
No adapter for handler [com.mine.api.test.MethodTest@40ec7974]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler


后来发现是错误使用了@Controller,

@Controller("/path") 是无效的,要用@Controller+@RequestMapping("/path")代替

你可能感兴趣的:(WebService开发)