JHipster comes with three Spring "profiles":
Those profiles come in two different configurations:
mvn -Pprod packagewill package a production application.
Spring profiles are set by Maven, so we have a consistency between the two methods:you will have a "prod" profile on Maven and Spring at the same time.
If you run the application without Maven, launch the "Application" class (you can probably run it easily from your IDE by right-clicking on it).
If you run the application with Maven, run
Use Maven to build the application with the "prod" profile:
When you run the application, don't forget to add the "prod" profile, by adding
--spring.profiles.active=prod to your program arguments.
You can test it with Maven, by running
The fast profile works with the "dev" profile, but makes some changes so that application starts up faster. On a recent MacBook Pro, you can expect to start-up:
To start faster, this profile :
When you run the application, use the "fast" profile with the "dev" profile, by adding
--spring.profiles.active=dev,fast to your program arguments.
If you use Maven, run
mvn -Pfast (the Maven "fast" profile will automatically select the "dev" and "fast" Spring profiles).