@SpringBootApplication(scanBasePackages="com.*.*")
@EnableScheduling
@EnableTransactionManagement
@MapperScan("com.*.**.*mapper")
@EnableConfigurationProperties({CustomConfiguration.class})
public class Application {}
SpringBootApplicationSpring注解的扫描路径EnableScheduling开启Spring的定时任务EnableTransactionManagement开始Spring的事务管理MapperScan扫描MyBatis Mapper类的路径EnableConfigurationProperties自定义配置文件映射类