1
ApplicationEventPublisher 설정되지 : (. SimpleChannelInboundHandler는 io.netty 클래스입니다)봄 3.1.2 : I 클래스는 다음과 같이 정의
이public class MyClass extends SimpleChannelInboundHandler<DataFrame<ByteBuf>> implements ApplicationEventPublisherAware
그런 다음 내 xml 파일에 내가 정의 MyClass에이 같은 :
: 문서에 따르면<bean id="MyClass" class="com.mypackage.MyClass" />
구성시 Spring 컨테이너는 EmailService가 ApplicationEventPublisherAware를 구현하고 이 자동으로 setApplicationEventPublisher()를 호출 함을 감지합니다.
하지만 실행하면 null입니다.
왜 그런가? ApplicationEventPublisherAware
의 일반적인 사용 패턴은 다음과 같습니다
감사
"null"로 무엇을 의미합니까? 널 인수로 호출되는 메소드입니까? – adrobisch