BUG
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Jan 16 01:39:21 CST 2022
There was an unexpected error (type=Not Found, status=404).
只有/say能访问
如要全路径可以用:
@RestController
public class HelloController {
@RequestMapping("/aa2/say2")
public String say(){
return "aaa22";
}
}
或
@RestController
@RequestMapping("/aa3")
public class Hello2Controller {
@RequestMapping("/say3")
public String say(){
return "aaa3333333";
}
}
#端口,项目上下文根
server:
port: 8090
servlet:
context-path: /