Skip to content
New issue

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

Godzilla SpringMVC Interceptor Class 注入失败 #37

Open
qwer1101 opened this issue Mar 20, 2025 · 1 comment
Open

Godzilla SpringMVC Interceptor Class 注入失败 #37

qwer1101 opened this issue Mar 20, 2025 · 1 comment

Comments

@qwer1101
Copy link

本地环境一:springboot
在addInterceptor()反射调用getBean的时候报错:
java.lang.NoSuchMethodException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext.getBean(java.lang.String)

Image

导致interceptor没有加进去。

本地环境二:SpringMVC + tomcat9.0.89
也是addInterceptor反射调用getBean的时候报错NoSuchMethodException。

@qwer1101
Copy link
Author

JDK17的环境

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant