Navigate to the project directory and run:
mvn spring-boot:run
Specify Profile:
mvn spring-boot:run -Dspring-boot.run.profiles=h2
mvn spring-boot:run -Dspring-boot.run.profiles=postgres
- Make sure to run mvn clean package so that jar file is available.
java -Dspring.profiles.active=h2 -jar ./target/*.jar
./mvnw clean package -DskipTests
./mvnw spring-boot:run -Dspring-boot.run.profiles=h2
My example (external css + image): http://localhost:8080/html_with_external_css_and_image.html
Basic html: http://localhost:8080/test.html
Basic html: http://localhost:8080/testB.html