Describe the bug I am currently trying out class caching via CDS/AOT not with Java 25 and I stumbled over some warnings regarding Spring Security:

[13.777s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer$JwtConfigurer
[13.786s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer
[13.786s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer
[13.787s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.saml2.Saml2MetadataConfigurer
[13.787s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer
[13.787s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.web.configurers.saml2.Saml2LoginConfigurer
[13.806s][warning][cds] Preload Warning: Verification failed for org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer
…
[14.469s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/saml2/Saml2MetadataConfigurer: Failed verification
[14.470s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurer: Failed verification
[14.473s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurer$JwtConfigurer: Failed verification
[14.477s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/saml2/Saml2LogoutConfigurer: Failed verification
[14.477s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer: Failed verification
[14.479s][warning][cds] Skipping org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2ClientConfigurer: Failed verification
[14.482s][warning][cds] Skipping org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer: Failed verification

To be honest I have no clue where this comes from, Google didn't bring up any usable result for me. I just assume that it would be beneficial for the cache if all classes would be loaded. What sticks out is that these are all Configurer classes.

To Reproduce In an application using spring-security try to create a CDS cache according to the docs. If that isn't enough I have to check how to add spring-security to the Pet Clinic.

Expected behavior No warnings during cache creation

Sample

No sample yet