Springboot not loading application.dev.properties file

前端 未结 4 2204
-上瘾入骨i
-上瘾入骨i 2021-02-19 18:27

In my project I want to use environment specific property file. For example if I am running it into development it should use application.dev.properties, for production it shoul

4条回答
  •  感动是毒
    2021-02-19 19:12

    If running on Eclipse or STS, then use following steps:

    1. Right click on project -> Run As -> Run Configuration.

    2. In the new window, select spring boot application on left side, and add details on the right and in the profile dropdown, select dev.

    3. Click apply and run.

提交回复
热议问题