Skip to content

nilankamanoj/springtemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springtemplate

template for a springboot web application

Runing instructions

Edit configurations

  1. Open src/main/resources/application.properties.
  2. Add database credentials to the database setup section. set spring.jpa.hibernate.ddl-auto=create for initial run.

Run by source code

Browse the root directory that contains pom.xml and run:

mvn clean install
mvn spring-boot:run

Run by JAR executable.

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.

Releases

No releases published

Packages

No packages published

Languages