spring-boot datasource profiles w/ application.properties

前端 未结 2 480
滥情空心
滥情空心 2021-02-19 07:40

Updated Question based upon feedback:

I have a spring-boot application that has three databases: H2 for integration testing, and Postgresql for

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 08:27

    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.

提交回复
热议问题