我们正在尝试将我们的应用程序迁移到 Spring Boot 3+ 版本,以及 Spring Security 6+。 我们的项目依赖于一个库(oauth2),它使用 Spring Boot 2+ 版本以及 WebSecurityConfigurerAdapter 和其他已弃用的人员。我们无法更改库,当我们启动应用程序时,我们会得到:
Caused by: java.io.FileNotFoundException: class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.class] cannot be opened because it does not exist
是否可以在我们的项目上使用 Spring Security 6+ 而不更改库?