inflearn logo
강의

講義

知識共有

Spring核心原理 - 基本編

コンポーネントスキャンと依存関係自動注入をはじめる

AutoAppConfigTest 결과에 WARNING이 뜨는 문구의 의미가 궁금합니다.

391

sonbbang

投稿した質問数 2

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'

spring oop

回答 2

0

Kwonkyu Park

저도 비슷하게 illegal reflective access 문제가 떴던 적이 있었는데요 아마 스프링 버전 문제(정확히는 JDK까지)였던 걸로 기억합니다. 5.2 이상이었나요 아무튼 최신 버전으로 의존성을 변경하시면 될 것 같습니다.

0

yh

안녕하세요. sonbbang님

저도 정확한 원인은 잘 모르겠습니다. 혹시 아시는 분 있으면 답변 부탁드립니다.

감사합니다.

SingletonService가 JVM이 뜰 때 생성되는게 맞나요?

0

25

1

섹션3. 11 회원객체 다이어그램

0

36

1

OCP, DIP과 @Qualifier 어노테이션에 대해서 질문합니다.

0

35

1

코드 자료

0

80

2

구현체가 동적으로 정해질 때, 팩토리 기법을 사용하나요?

0

79

2

MemberService의 인터페이스를 왜 사용하는지 궁금합니다.

0

98

1

롬복 @Setter를 써야 하는 상황이 있는건가요?

0

103

1

빈 등록 메서드의 파라미터가 빈이 아니어도 되나요?

0

88

1

테스트 속도가 나중에 영향이 있을까요?

0

89

1

gradle 설정 안떠서 질문 남깁니다!

0

140

2

build.gradle로 프로젝트를 여는 이유

0

100

1

provider 사용하는 이유

0

97

1

다음 강의 뭘 들어야 할까요

0

139

2

프로토타입 빈, 직접 destroy 호출 안 할 경우

0

69

1

beanB

0

91

2

퀴즈다시풀기

0

75

1

Gradle로 바꿔도 오류가 똑같이 발생하네요 ㅠㅠ

0

102

2

"중복 등록과 충돌" 강의에서 강사님과 다른 에러가 발생합니다.

0

71

3

run 실행했는데 결과창이 이렇게 뜨네요 왜 그런건가요>

0

112

2

도메인의 정의?

0

63

1

ApplicationContext 질문입니다.

0

68

1

@Scope의 proxyMode를 사용할때 단위 테스트 방법

0

98

2

ai api 선정하기 관련 질문

0

133

2

생성자 자동주입 관련해서

0

68

1