How to change profile in file


New Member
I'm using Spring boot to build an app, but don't know ow to change profile in file. For example, I want to have 2 profiles: "dev" and "server" in my application. How could I do that?


Thành viên BQT
In src/main/resources folder, create two new files: and These two files correspond to dev profile and server profile! Change profile in (example to change to server profile):

Từ khóa phổ biến

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.