-
2021.06.16 기록장TIL 2021. 6. 15. 23:47
ToDo
- 책 읽기
- 미션 oauth 및 배포 자동화
Done
- 미션 oauth
Weekly goal
- 책 읽기
- 블로그 읽기
Feeling
properties 암호화
원래는 ignore 시켜서 안 올리는데 git action을 사용하기 위해 git에 올려야 한다.
정보는 노출되면 안 되니 암호화를 진행했다.
https://oingdaddy.tistory.com/120
Spring properties 파일의 내용 암호화하기 (with Jasypt)
properties 파일을 구성할때 암호화가 필요한 부분들이 존재한다. 가장 대표적인 예가 datasource의 username, password 부분이다. 이것들은 정말 다양한 방법을 통해서 암호화가 되고 있지만 요즘 추세는 d
oingdaddy.tistory.com
https://bibi6666667.tistory.com/317
[Spring] Jasypt - 자바 코드 암호화 (시크릿 키 암호화하기)
jasypt (자바 키 암호화 방식) 출처 : 우디가 공유해주신 필기노트🙇♂️ Jasypt Java Simplified Encryption 자바 코드 암호화 서비스 제공 DB 패스워드, OAuth Client Secret 등 민감정보를 암호화하기 위해..
bibi6666667.tistory.com
인터셉터 사용 시 casting exception 발생
일단 intercepter의 handler는 spring 3.1 이후부터는 정적 리소스를 처리하지 않는 이상 컨트롤러 객체가 아닌 HandlerMethod class가 들어온다.
https://www.programmersought.com/article/17111361272/
Research on HandlerMethod type conversion problem in custom SpringMVC interceptor - Programmer Sought
Summary After migrating a module to the spring boot project and starting the project with embeded tomcat, a SpringMVC interceptor declared in the module "cn.xxx.thread.common.web.speedctrlforuser.SpeedctrlForUserInterceptor" is thrown when the RESTfule int
www.programmersought.com
intercepter를 특정 url이 아닌 모든 곳으로 설정하니 정적 리소스(파비콘)를 받는 uri도 인터셉터에 걸려서 casting 오류가 나는 것이다.
해결은 인터셉터를 걸 uri 범위를 더 좁히자.
아니면 검사해서 true로 내보내서 계속 진행하게 하자.
https://okky.kr/article/343765
OKKY | ClassCastException
1. 먼저 어노테이션을 만들었습니다. 2. 그 다음 인터셉터에서 무시하길 원하는 컨트롤러의 특정 메소드 에 어노테이션을 붙였습니다. 3. 그리고 인터셉터에서 해당 어노테이션을 체크 하려고 하
okky.kr
'TIL' 카테고리의 다른 글
2021.06.18 기록장 (0) 2021.06.18 2021.06.17 기록장 (0) 2021.06.17 2021.06.15 기록장 (0) 2021.06.15 2021.06.14 기록장 (0) 2021.06.14 2021.06.13 기록장 (0) 2021.06.13