원래는 멀티 모듈 프로젝트에서 ext로 plugin, dependency들의 버전을 관리했는데, build.gradle 파일을 build.gradle.kts로 마이그레이션하게 되어 ext를 기존에 사용하던 방법대로 사용하지 못하게 되었다. 다른 방법을 찾던 중 buildSrc와 libs.versions.toml 두 방법을 찾았다. 1. buildSrc root 프로젝트 밑에 buildSrc를 만들고 src/main/kotlin 안에 object를 만드는 방법이다. build.gradle.kts 파일은 이렇게 작성하면 된다. object 파일 안에는 이런 식으로 작성하면 되고 root 프로젝트의 build.gradle.kts에는 이런식으로 작성하면 된다! 2. libs.versions.toml libs.v..
본 게시물은 라이트 모드를 권장합니다 MSA 환경에서 Interceptor와 Feign을 이용해 헤더에서 뽑은 정보를 이용해 User 정보를 불러오는 기능을 만들었다. 하지만 애플리케이션 실행 시 순환 참조 에러가 났다 The dependencies of some of the beans in the application context form a cycle: commentController defined in file ~ ↓ commentService defined in file ~ ┌─────┐ | com.toongether.webtoonservice.global.lib.feign.UserFeignClient ↑ ↓ | org.springframework.boot.autoconfigure.web.ser..