springboot-扩展配置类

yebdmbv4  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(235)

我有一门课:

@Configuration
public class SecurityConfiguration extends SpringSecurityConfiguration {
}

..

@Configuration
@EnableWebSecurity
@EnableAspectJAutoProxy
@EnableGlobalMethodSecurity(
    jsr250Enabled = true,
    securedEnabled = true,
    prePostEnabled = true,
    proxyTargetClass = true
)
public class SpringSecurityConfiguration extends WebSecurityConfigurerAdapter {
    public SpringSecurityConfiguration() {
    }
..
}

但当我部署时,我有一个错误:

Caused by: java.lang.IllegalStateException: @Order on WebSecurityConfigurers must be unique. Order of 100 was already used on eSecurityConfiguration$$EnhancerBySpringCGLIB$$e8ee1d6f@18dbc2eb, so it cannot be used on

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题