SpringBoot用的比较少,工作需要写个接口,发现接口请求404 ,查了半天,最后发现 @SpringBootApplication 与 @RestController放在了不同包下。 SpringBoot请求404问题