@ComponentScan(basePackages="com.xxx.data")
@MapperScan("com.xxx.batch.dao")
@EnableTransactionManagement
@EnableDiscoveryClient
@SpringBootApplication
@EnableScheduling
@EnableAsync
protected static Logger Log = (Logger)LoggerFactory.getLogger(OutputLogUtil.class);
@Configuration
@EnableSwagger2在swagger中使用
@CrossOrigin

本文详细解析了SpringBoot微服务架构中的关键配置与注解使用,包括@ComponentScan、@MapperScan、@EnableTransactionManagement等,阐述了如何通过这些注解实现数据访问层的扫描、事务管理、服务发现等功能,同时介绍了@EnableSwagger2在API文档生成中的应用。
556

被折叠的 条评论
为什么被折叠?



