事务 @Transactional
SpringBoot 多数据源及事务解决方案
SpringBoot教程(7) @ConditionalOnProperty 详细讲解和示例
通过自定义starter,优雅实现接口统一返回和统一异常处理
application.properties
spring.profiles.active=@profiles.active@
项目级别pom.xml
<profiles>
<profile>
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>uat</id>
<properties>
<profiles.active>uat</profiles.active>
</properties>
</profile>
</profiles>
全局设置源码下载
settings.xml
<profiles>
<profile>
<id>downloadSources</id>
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>downloadSources</activeProfile>
</activeProfiles>