1.子模块的项目,注解都不生效,包括@RestController @EnableScheduling @Scheduled等; 解决方法: 在子项目右键,clean install,会发现报错了,解决完问题以后就可以了。