![]() When I deploy the package, spring boot read if present in application.properties. When I run the configuration with debug mode, I can see in the test section that my current param passed in maven is correctly used (if I set dev, I see in maven test that my dev DB is called, so reads the application-dev.properties file), but after when maven is generating the final war this param don't seem to be used anymore. Now I create a maven run configuration, using in goals section : package spring-boot:repackageĪnd I also add in parameter section : with dev as value.Īt the end I would like 3 run configurations with different values in so the package will be prepared for different environnements. I've created application-.properties and boot reads the property file accordingly with param set in application.properties The profiles are set and working good, I can switch profiles in application.properties using param : ![]() ) and maven 3 using spring source tool suite. I'm trying to make my spring boot app ready for easy packaging war using profiles (dev, prod.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |