Giter Club home page Giter Club logo

glaumtechnologies / spring-boot-hibernate-multiple-module-with-security Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 6.0 70 KB

This projects contains Spring boot, Spring security login and logout, Thymleaf Integration, Multiple view resolvers, Hibernate integartion, Maven multiple modules.

Home Page: http://www.glaum.in

Java 90.37% HTML 9.63%
spring-boot hibernate spring-security maven-multimodule thymeleaf spring-data-jpa springmvc spring-mvc hibernate-criteria hibernate-framework hibernate-orm multipleview spring-logging login logout mysql spring-rest

spring-boot-hibernate-multiple-module-with-security's Introduction

spring-boot-hibernate-multiple-module-with-security

This projects contains Spring boot, Spring security login and logout, Multiple view resolvers, Html, Thymleaf integration, Hibernate integration and Maven multiple modules. Main intention of this project is to quickly start a complex java spring web application project without worrying about basic setup. We hope this project will fulfill your needs. We welcome contributors.

We decoupled the dependencies between different features of this project. So we have created different branches with each unique features. If you want a specific feature with Spring boot basic integration. You can clone only what you need.

Modules

gmanage-base

  • Spring basic configuration

  • Hibernate integration

  • Logging

  • Multiple View resolvers

  • Thymleaf integration

login

  • Login and Logout

  • Registration

  • Password Encoder

  • Form Validation

  • Authorization (Roles and Privilege)

  • CSRF Token Integration (Blocks security vulnerabilities)

  • "Remember Me"

Local environment setup

  • From the root directory run the following command

mvn install
  • If you use Intellij, It should have detected it as Spring boot application and you should able to see run configuration for this. Otherwise run the below command from the root directory.

mvn spring-boot:run
  • Now you have started the application successfully. We have created in-built test endpoints as follows.

http://localhost:8080/ - Verify Spring boot and Controller mappings.
http://localhost:8080/html - Verify View resolvers and Controller response.
http://localhost:8080/database - Verify Hibernate and database configuration.
http://localhost:8080/login - Simple html login form with Login feature and Verify Thymleaf Integration.
http://localhost:8080/home - Simple html file with Logout feature.
http://localhost:8080/registration - Simple user role registration form
http://localhost:8080/registration/admin - Simple admin role registration form
http://localhost:8080/registration/customer/ - Access only for user have "ADMIN" role.
http://localhost:8080/registration/account/ - Access only for user have "USER" role.
  • If you face any issue during the application startup. Please check the below points. If it is not helpful, please create an issue in this repository or notify us.

- Check database configuration in "application.properties"
- Verify the database table structure matches with Hibernate Entity classes

Contributors

Stay tuned :)

Upcoming Features

  • Exception Handling

  • OAuth Integration

  • Forgot Password

Report

Glaum Facebook

Glaum Twitter

Glaum Website

spring-boot-hibernate-multiple-module-with-security's People

Contributors

glaumtech avatar vijayanasokan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spring-boot-hibernate-multiple-module-with-security's Issues

project does not run

when try to run the application the following exception shown in console
Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at org.springframework.boot.devtools.restart.DefaultRestartInitializer.getUrls(DefaultRestartInitializer.java:93)
at org.springframework.boot.devtools.restart.DefaultRestartInitializer.getInitialUrls(DefaultRestartInitializer.java:56)
at org.springframework.boot.devtools.restart.Restarter.(Restarter.java:140)
at org.springframework.boot.devtools.restart.Restarter.initialize(Restarter.java:546)
at org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationStartingEvent(RestartApplicationListener.java:67)
at org.springframework.boot.devtools.restart.RestartApplicationListener.onApplicationEvent(RestartApplicationListener.java:45)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)
at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:292)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.glaum.SpringBootRun.main(SpringBootRun.java:19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.