且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有 application.properties 的 spring-boot 数据源配置文件

更新时间:2021-08-07 22:34:28

21.3 的 Spring Boot 文档.本节介绍如何定义使用格式 application-{profile}.properties 的配置文件特定属性文件.这可以帮助您在每个配置文件的基础上隔离属性.

See section 21.3 of the Spring Boot documentation. This section describes how to define profile specific property files that use the format application-{profile}.properties. This can help you isolate properties on a per profile basis.