728x90
728x90
[QueryDSL] annotationProcessorGeneratedSourcesDirectory deprecated
트러블슈팅2023. 8. 26. 15:45[QueryDSL] annotationProcessorGeneratedSourcesDirectory deprecated

스프링부트를 활용해 토이 프로젝트 개발을 진행하는 과정에서 어느날 갑자기 잘 되던 QueryDSL의 QDomain 경로 지정이 되지 않아서 테스트가 통과되지 않았다. 찾다찾다 build 설정에서 deprecated된 코드를 발견할 수 있었으며 컴파일 과정에서 JavaCompile유형의 작업의 속성을 변경해주는 코드로 설정한 querydslDir 변수의 경로에 파일을 생성하는 코드이다. 공식 Gradle 문서에 따르면 위의 annotationProcessorGeneratedSourcesDirectory는 generatedSourceOutputDirectory로 변경되었다고 한다. https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.Compil..

Spring Security WebSecurityConfigurerAdapter / cors, csrf Deprecated 해결하기
Spring2023. 8. 20. 13:06Spring Security WebSecurityConfigurerAdapter / cors, csrf Deprecated 해결하기

서론최근 토이 프로젝트 진행중에 간단하게 회원기능을 구현하고자 Security를 사용하는데 이전 사용했던 WebSecurityConfigurerAdapter을 상속받아 구현하던 Config설정에 바뀐 부분이 있고 또한 시큐리티를 통한 권한 확인이나 로그인, 로그아웃 등 기타 작업등은 하지 않을 계획이라 csrf(), cors() disable을 설정하는 과정에서도 Deprecated된 것을 확인하여 기록하고자 함 아래는 각각 WebSecurityConfigurerAdapter와, Spring Security 6.1.2버전에서의 Deprecated API를 정리해둔 공식 docs https://spring.io/blog/2022/02/21/spring-security-without-the-websecuri..

728x90
728x90
image