[JAVA] springboot multi-environment packaging

Uncle Cthulhu 2022-11-24 21:24:28 阅读数:938

javaspringbootmulti-environmentmultienvironment

1. Above picture, directory structure

2.pom.xml

testtestfalseproprofalse

3. After pasting the above code block, it will appear

You can switch at will (Note: After canceling, wait for the progress bar below to disappear before clicking)

4. Look at the content of the file: pro data source

logback.pro.xml file

My side is just the difference of the loghome path;

copyright:author[Uncle Cthulhu],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/328/202211242120378738.html