Using JHipster in development
Please check our video tutorial on creating a new JHipster application!
General configuration
IDE configuration
If you haven't configured your IDE yet, please go to the Configuring your IDE page.
Application configuration
By default, JHipster uses the "development" profile, so you don't have to configure anything.
If you want more information on the available profiles, please go the section titled "Profiles".
If you want to configure some specific JHipster properties, have a look at the common application properties page.
Running the Java server
As a "main" Java class
From your IDE, right-click on the "Application" class at the root of your Java package hierarchy, and run it directly. You should also be able to debug it from your IDE.
The application will be available on http://localhost:8080.
This application will have "hot reload" enabled by default, so if you compile a class, the Spring application context should refresh itself automatically, without the need to restart the server.
As a Maven project
You can launch the Java server with Maven. JHipster provides a Maven wrapper, so you don't need to install Maven, and you have the guarantee that all project users have the same Maven version:
on Mac OS X/Linux:
./mvnw
on Windows:
mvnw
(this will run our default Maven task, spring-boot:run
)
The application will be available on http://localhost:8080.
If you will use live reload with npm start
then you can speed up server start up by excluding webpack tasks by:
./mvnw -P-webapp
Alternatively, if you have installed Maven, you can launch the Java server with Maven:
mvn
If you want more information on using Maven, please go to http://maven.apache.org
(Optional) As a Gradle project
If you selected the Gradle option, JHipster provides a Gradle wrapper, so you don't need to install Gradle, and you have the guarantee that all project users have the same Gradle version:
on Mac OS X/Linux:
./gradlew
on Windows:
gradlew
(this will run our default Gradle task, bootRun
)
The application will be available on http://localhost:8080.
If you will use live reload with npm start
then you can speed up server start up by excluding webpack tasks by:
./gradlew -x webapp
Alternatively, if you have installed Gradle, you can launch the Java server with Gradle:
gradle
If you want more information on using Gradle, please go to https://gradle.org