且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

RequestMappingHandlerMapping.getHandlerInternal:230-找不到用于的处理程序方法

更新时间:2023-11-16 19:55:04

ControllerMain.java在@Controller之后需要一个@RequestMapping( /)语句。

ControllerMain.java requires a @RequestMapping("/") statement after the @Controller.

更改:

@Controller
public class ControllerMain {

@RequestMapping(value = "/hello", method = RequestMethod.GET)
....
....

收件人:

@Controller
@RequestMapping("/")
public class ControllerMain {

@RequestMapping(value = "/hello", method = RequestMethod.GET)
....
....
....