diff --git a/README.md b/README.md index 7eb7010..e8977ec 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,21 @@ # Spring Boot JWT Authentication example with Spring Security & Spring Data JPA +## User Registration, User Login and Authorization process. +The diagram shows flow of how we implement User Registration, User Login and Authorization process. + +![spring-boot-jwt-authentication-spring-security-flow](spring-boot-jwt-authentication-spring-security-flow.png) + +## Spring Boot Server Architecture with Spring Security +You can have an overview of our Spring Boot Server with the diagram below: + +![spring-boot-jwt-authentication-spring-security-architecture](spring-boot-jwt-authentication-spring-security-architecture.png) + For more detail, please visit: > [Secure Spring Boot App with Spring Security & JWT Authentication](https://bezkoder.com/spring-boot-jwt-authentication/) > [For MongoDB](https://bezkoder.com/spring-boot-jwt-auth-mongodb/) -# Fullstack +## Fullstack Authentication > [Spring Boot + Vue.js JWT Authentication](https://bezkoder.com/spring-boot-vue-js-authentication-jwt-spring-security/) @@ -15,6 +25,18 @@ For more detail, please visit: > [Spring Boot + React JWT Authentication](https://bezkoder.com/spring-boot-react-jwt-auth/) +## Fullstack CRUD App + +> [Vue.js + Spring Boot + MySQL/PostgreSQL example](https://bezkoder.com/spring-boot-vue-js-crud-example/) + +> [Angular + Spring Boot + MySQL example](https://bezkoder.com/angular-10-spring-boot-crud/) + +> [Angular + Spring Boot + PostgreSQL example](https://bezkoder.com/angular-10-spring-boot-postgresql/) + +> [React + Spring Boot + MySQL example](https://bezkoder.com/react-spring-boot-crud/) + +> [React + Spring Boot + PostgreSQL example](https://bezkoder.com/spring-boot-react-postgresql/) + Run both Back-end & Front-end in one place: > [Integrate Angular with Spring Boot Rest API](https://bezkoder.com/integrate-angular-spring-boot/) diff --git a/pom.xml b/pom.xml index 048d6d3..907ac6a 100644 --- a/pom.xml +++ b/pom.xml @@ -36,8 +36,8 @@ - org.postgresql - postgresql + mysql + mysql-connector-java runtime @@ -52,7 +52,7 @@ spring-boot-starter-test test - + org.springframework.security spring-security-test diff --git a/spring-boot-jwt-authentication-spring-security-architecture.png b/spring-boot-jwt-authentication-spring-security-architecture.png new file mode 100644 index 0000000..b238cb3 Binary files /dev/null and b/spring-boot-jwt-authentication-spring-security-architecture.png differ diff --git a/spring-boot-jwt-authentication-spring-security-flow.png b/spring-boot-jwt-authentication-spring-security-flow.png new file mode 100644 index 0000000..95b5608 Binary files /dev/null and b/spring-boot-jwt-authentication-spring-security-flow.png differ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index eea124f..d02fe7a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,13 +1,8 @@ -## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) -spring.datasource.url= jdbc:postgresql://localhost:5432/testdb -spring.datasource.username= postgres -spring.datasource.password= 123 +spring.datasource.url= jdbc:mysql://localhost:3306/testdb?useSSL=false +spring.datasource.username= root +spring.datasource.password= 123456 -spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation= true -# The SQL dialect makes Hibernate generate better SQL for the chosen database -spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.PostgreSQLDialect - -# Hibernate ddl auto (create, create-drop, validate, update) +spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.hibernate.ddl-auto= update # App Properties