1. @SpringBootApplication注解的程序入口类必须放在所有的RestController的根路径的package下,否则无法被注册到Spring Boot的RestController上去

如果遇见这样得错误There was an unexpected error (type=Not Found,
status=404).但是检查请求没有写错,那么请检查一下@SpringBootApplication是否在含有RestController类的根路径package下.

package com.alanzh.platform.user.action;

@RestController
public class UserFeignAction {
    
}

package com.alanzh.platform;

@SpringBootApplication
public class Application {
    
}