작성
·
308
0
AutoAppConfigTest 결과에 WARNING이 뜨는 문구의 의미가 궁금합니다. 저는 Java 11버전입니다.
인터넷 검색 시 아래와 같은 설명이 있습니다.
"원인은 JDK 9 이상의 환경에서 CGLIB의 JDK API 내부에서 발생한 것으로, Spring Framework 4.3 기준 실행중 문제는 없다고 한다."
00:36:51.018 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [C:\Study\core\out\production\classes\hello\core\discount\RateDiscountPolicy.class]
00:36:51.031 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [C:\Study\core\out\production\classes\hello\core\member\MemberServiceImpl.class]
00:36:51.033 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [C:\Study\core\out\production\classes\hello\core\member\MemoryMemberRepository.class]
00:36:51.041 [main] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [C:\Study\core\out\production\classes\hello\core\order\OrderServiceImpl.class]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/%ea%b9%80%ec%84%9c%ec%a7%84/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.5/633de7c79bfeccf05c81a0d4a32b3336010f06ab/spring-core-5.3.5.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
00:36:51.675 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor'
WARNING: All illegal access operations will be denied in a future release
00:36:51.684 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
00:36:51.693 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
00:36:51.698 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
답변 2
0
저도 비슷하게 illegal reflective access 문제가 떴던 적이 있었는데요 아마 스프링 버전 문제(정확히는 JDK까지)였던 걸로 기억합니다. 5.2 이상이었나요 아무튼 최신 버전으로 의존성을 변경하시면 될 것 같습니다.
0