JHipster - 404 when starting executable jar

Given that JHipster uses springboot, I created a new empty JHipster project and tried to start the resulting executable jar (java -jar jhipster-0.1-SNAPSHOT.jar). I am getting a 404 return code when I try to access the site http: // localhost: 8080 .

If I execute gradle bootRun it works.

Any thoughts?

Gradle OSX Yosemite

+3


source to share


1 answer


I have the same problem in a maven project when I package a jar with a development profile. Make sure you are using profiling:

gradlew -Pprod bootRepackage

      

and then start a jar with a development profile



java -jar jhipster-0.0.1-SNAPSHOT.war

      

or with a production profile

java -jar jhipster-0.0.1-SNAPSHOT.war --spring.profiles.active=prod

      

0


source







All Articles