I am running spring-boot on an embedded tomcat server through maven with mvn clean install spring-boot:run. But every time I run it I get this error:
mvn clean install spring-boot:run
Here I have simplest solution that worked in my case.
Whether it be from Java command prompt, or VM options from IDE such as eclipse or IntelliJ, try supplying the following:
-Dspring.profiles.active=
This is alternative to modifying/touching the pom file mentioned above.