Spring MVC(2)
-
Gradle 로 Spring Legacy
Gradle 로 Spring MVC 프로젝트 구현하기 * 2021-11-26 * build.gradle dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.0" implementation 'org.springframework:spring-webmvc:5.2.18.RELEASE' testImplementation 'junit:junit:4.13.2' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' } ContextLoaderListener 에 대한 실험 Gra..
2021.11.27 -
Spring Security 암호화된 properties 값 읽기
/WEB-INF/spring/appServlet/props-context.xml Mybatis, JPA 등에서 DB 접속을 할때, username 과 password 를 소스코드에 노출하지 않도록 하기 위하여 /WEB-INF/props/db.properties 파일에 다음과 같이 암호화된 값을 저장하고 # MySQL DB 연결 설정 db.driver=com.mysql.cj.jdbc.Driver db.url=jdbc:mysql://localhost:3306/mydb db.username=ENC(vZ1EHcJ1UU2VgmR3y/fSgrJSAaqwvZQN) db.password=ENC(K2pud5bNn4Jse4jMckK15XzQJhIy/yrN2ScBeBCafYc=) dbconn-context.xml 에서 En..
2021.11.15