4/13/2023 0 Comments Intellij ultimate edition priceThe only way to pass args to it, is: mvn spring-boot:run =". It is mentioned somewhere, that Spring changes the way of launching the process of applications if you specify some JVM options it forks another process and will not pass the arg it received so this does not work. (See here: how to use Spring Boot profiles) 2. It actually works with one project of mine with Spring Boot v2.0.3.RELEASE and Spring v5.0.7.RELEASE, but not with another project with Spring Boot v2.1.1.RELEASE and Spring v5.1.3.RELEASE.Īlso, when running with Maven or JAR, people mentioned this: mvn spring-boot:run -Drun.profiles=dev Open "Edit configuration" in "Run", and in "VM options", add: =local The Community Edition is free and open-source, while the Ultimate Edition has. Here's some way to try when you launch an application in Intellij and want to active some profile: 1. IntelliJ IDEA is available in Community Edition and Ultimate Edition. Spring Boot seems had changed the way of reading the VM options as it evolves. So my question is, how do I activate my local spring boot profile when running bootRun from IntelliJ ? If I run my app from the windows command line using gradle bootRunīut I first set the environment variable set SPRING_PROFILES_ACTIVE=local I keep seeing the INFO message on startup say: No active profile set, falling back to default profiles: default To the run configuration under VM options. To the run configuration under script parameters. I will be using deploying the same application war file on all other environments which run Tomcat. I am using IntelliJ and running my app using bootRun in the Gradle plugin on my local machine. I want different application properties to be used for each environment, so I have the following properties files each which have a different URL for the datasource: - application.properties (containing common properties) I have 5 environments: - local (my development machine)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |