-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
ClassNotFoundException for EnableSpringDataWebSupport & EnableWebSecurity #4121
Comments
Add first validation for these classes on the classpath before to use them. See spring-projectsgh-4121
Add first validation for these classes on the classpath before to use them. See spring-projectsgh-4121
If an annotation isn't on the classpath, the JVM will just ignore it. Are the |
Yes, all tests passed but the execution of
|
Thanks, Eddu. Those errors are benign, which is why they're logged at debug. Spring Framework uses ASM to look at the bytecode. In this case it's found an annotation that isn't on the classpath. That means that metadata about the annotation will be unavailable, nothing more. When the class is actually loaded, the JVM drops the annotation as it's not on the classpath. |
Thanks to clarify @wilkinsona |
During test execution ClassNotFoundException is thrown for
EnableSpringDataWebSupport
andEnableWebSecurity
because these annotations are in the root of auto-configuration class.You can use the joshlong/mybatis-spring-boot repo to reproduce and run
MybatisAutoConfigurationTest
class.The text was updated successfully, but these errors were encountered: