Compare commits
6 Commits
develop
...
feature/is
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d54b88aa28 | ||
|
|
7e31cea721 | ||
|
|
fecd48a160 | ||
|
|
55cbab0a58 | ||
|
|
e4003972fe | ||
|
|
cf9f5aa87f |
4
server/.gitignore
vendored
4
server/.gitignore
vendored
@@ -86,7 +86,9 @@ fabric.properties
|
|||||||
# Ignore everything but code style settings and run configurations
|
# Ignore everything but code style settings and run configurations
|
||||||
# that are supposed to be shared within teams.
|
# that are supposed to be shared within teams.
|
||||||
|
|
||||||
.idea/*
|
.idea/
|
||||||
|
.idea/*.iml
|
||||||
|
.idea/*.xml
|
||||||
|
|
||||||
!.idea/codeStyles
|
!.idea/codeStyles
|
||||||
!.idea/runConfigurations
|
!.idea/runConfigurations
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ dependencies {
|
|||||||
implementation ("org.springframework.boot:spring-boot-starter-validation")
|
implementation ("org.springframework.boot:spring-boot-starter-validation")
|
||||||
implementation ("org.springframework.boot:spring-boot-starter-web")
|
implementation ("org.springframework.boot:spring-boot-starter-web")
|
||||||
|
|
||||||
|
implementation ("com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4")
|
||||||
|
|
||||||
compileOnly ("org.projectlombok:lombok")
|
compileOnly ("org.projectlombok:lombok")
|
||||||
runtimeOnly ("mysql:mysql-connector-java")
|
runtimeOnly ("mysql:mysql-connector-java")
|
||||||
annotationProcessor ("org.projectlombok:lombok")
|
annotationProcessor ("org.projectlombok:lombok")
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ticketing.server.global.config;
|
||||||
|
|
||||||
|
import org.jasypt.encryption.StringEncryptor;
|
||||||
|
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
|
||||||
|
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class JasyptConfig {
|
||||||
|
|
||||||
|
@Bean("jasyptStringEncryptor")
|
||||||
|
public StringEncryptor stringEncryptor() {
|
||||||
|
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
||||||
|
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
||||||
|
config.setPassword("ticketing");
|
||||||
|
config.setAlgorithm("PBEWithMD5AndDES");
|
||||||
|
config.setKeyObtentionIterations("1000");
|
||||||
|
config.setPoolSize("1");
|
||||||
|
config.setProviderName("SunJCE");
|
||||||
|
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator");
|
||||||
|
config.setStringOutputType("base64");
|
||||||
|
encryptor.setConfig(config);
|
||||||
|
return encryptor;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/ticketing?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
|
url: jdbc:mysql://localhost:3306/ticketing?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
|
||||||
username: ticketing
|
username: ENC(LowN1n4w0Ep/DqLD8+q5Bq6AXM4b8e3V)
|
||||||
password: ticketing
|
password: ENC(OMvGcpZLpggFTiGNkqNe66Zq/SmJXF6o)
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
|
||||||
jpa:
|
jpa:
|
||||||
|
|||||||
@@ -25,3 +25,7 @@ spring:
|
|||||||
cacheServerConfiguration: true
|
cacheServerConfiguration: true
|
||||||
elideSetAutoCommits: true
|
elideSetAutoCommits: true
|
||||||
maintainTimeStats: false
|
maintainTimeStats: false
|
||||||
|
|
||||||
|
jasypt:
|
||||||
|
encryptor:
|
||||||
|
bean: jasyptStringEncryptor
|
||||||
|
|||||||
Reference in New Issue
Block a user