template for a springboot web application
- Open src/main/resources/application.properties.
- Add database credentials to the database setup section. set spring.jpa.hibernate.ddl-auto=create for initial run.
Browse the root directory that contains pom.xml and run:
mvn clean install
mvn spring-boot:run
Copy paste new application.properties to target/ folder to inject configurations in to executable. run:
jar uf springtest-1.0-SNAPSHOT.jar application.properties
java -jar springtest-1.0-SNAPSHOT.jar
After initial run, set spring.jpa.hibernate.ddl-auto=none and save/ inject application.properties file and restart the server.