本文主要是介绍报错: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错:
No adapter for handler [com.yupi.apiopeninterface.controller.NameController@4f16e529]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler
解决:
RestController("/路径")
RestController不可以添加路径,再添加一个@RequestMapping 注解吧。
这篇关于报错: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!