Skip to content

Basic application created in Spring Framework. It can be used as starting point for new applications.

Notifications You must be signed in to change notification settings

misino/springBasic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springBasic

Basic application created in Spring Framework. It can be used as starting point for new applications. There are solved some issues which needs to be solved while developing web app from the scratch. Developers can grad this code and customize it to their needs.

##Features

  • Templates (Thymeleaf) - for web content and email messages
  • Authentication, registering users, resetting forgotten password
  • Email sending
  • Exception Handling (No ugly errors displayed on the page)
  • Internationalization
  • Database migrations (Flyway), database configuration

##Requirements

  • Java 7
  • application server (i.e. Apache Tomcat 8)

##Configuring Before building and deploying .war file, you need to set some values in .properties files which are located in resources. Configure database connection and SMTP connection. Configure database connection for Flyway in build.gradle

After connections are set, open command line, go to root directory and

##Building In command line, go to root directory of this project. Run ./gradlew build

WAR file can be found in build/libs directory.

##Database migrations Database can be easily updated with updates scripts which are located in src/main/resources/db/migration/. For automatic database update, run command ./gradlew flywayMigrate -i from root directory. If you dont know how to write or use these sql update scripts, learn more on http://flywaydb.org/

About

Basic application created in Spring Framework. It can be used as starting point for new applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published