We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我没看错的话,在480面构建泛型事件的例子中,构建泛型事件的代码和构建用户事件监听器的代码完全重复。
The text was updated successfully, but these errors were encountered:
实际的代码应该在 thinking-in-spring-boot-samples/spring-framework-samples/spring-framework-5.0.x-sample/src/main/java/thinking/in/spring/boot/samples/spring5/context/event/GenericEventListenerBootstrap.java 最下面
Sorry, something went wrong.
P483 的对比情况表中说 ApplicationListener 不支持泛型事件,P491 则说“两种途径均能监听一种或多种事件,并且支持泛型事件。”,ApplicationListener 应该是支持泛型事件,只是由于接口泛型范围的限制不能像 @EventListener 直接监听类似事件源 User 对象吧。
@EventListener
No branches or pull requests
我没看错的话,在480面构建泛型事件的例子中,构建泛型事件的代码和构建用户事件监听器的代码完全重复。
The text was updated successfully, but these errors were encountered: