spring boot 404@ 1.检查映射路径,查看是否有问题; 2.查看项目层级结构,Spring boot只会扫描启动类当前包和以下的包; 3.添加@ComponentScan(basePackages = {})注解。