All project for spreated secutrity level on it. Figure-1. Security environment and implemenation, step by step.
- Simple project provides Spring Boot and No - Security dependency and using @Security annotation.
- The mainly 2 parameters: Annotaion with logic and dependency (maven)
-
Simple project provides Spring Boot and Security dependency and using @Security annotation.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>
- Spring Boot + Web + Security
- Dependecy adding in Maven
- Spring Boot + Web + Security
- Dependecy adding in Maven
- Spring Boot + Web + Security
- Dependecy adding in Maven
-> Project-5.0.1 SpringHttptoHttps -> Project-6. SpringSecureSSLHttps
- Http to HTTPS
- Server configuration Security
server.port=8443
server.ssl.enabled=true
## The path to the keystore containing the certificate
server.ssl.key-store = src/main/resources/securePC.p12
#
## The format used for the keystore. It could be set to JKS in case it is a JKS file
server.ssl.key-store-type = PKCS12
## The password used to generate the certificate
server.ssl.key-store-password = 123456
-
Security DB
-
Server configuration in the secutrity with DB
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> https://mvnrepository.com/artifact/mysql/mysql-connector-java <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.15</version> </dependency>
- Security DB
- Server configuration in the secutrity with DB