WHAT:
This is a spring boot application that demonstrate:
-simple webapp, rest interface,
-security with database,
-caching,
-search with pagination,
-custom error handling,
-send email,
-init data.
WHAT IS NEEDED:
-java 8,
-postgress database,
HOW TO RUN:
-in database execute /src/sql/tables.sql script.
-from consone: "mvn clean install"
-java -jar target/mh.springboot-1.0.0-SNAPSHOT.jar --server.port=8080
-run from Intellij (add "Spring Boot" application),
[to reload page without restarting application on Mac press: cmd-shift f9]
Default users:
-login: "admin",
password: "a", RoleEnum.ADMIN, RoleEnum.USER,
-login: "user"
password: "u", RoleEnum.USER
TO RETHINK:
-in AbstractEntity added fields: OffsetDateTime (still waiting for JPA 2.2, JPA1 doesn't support it, it is better to use JodaTime)
TODO:
-add hashing for password,
-add unit tests instead integration tests,
-add better spring security tests,
-add more builders.
BRANCHES:
-master - current development
-single_page - serve simple html page.
interesting links:
https://spring.io/guides/tutorials/spring-boot-oauth2/#_social_login_simple
marekhudyma/spring_boot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published