在 Spring Boot 应用程序中,仅使用注释,我想实现安全性
我@EnableGlobalMethodSecurity(jsr360Enabled=true)
在配置类中添加了一个。这个类也有一个@EnableSecurity
注释
现在,当我@RolesAllowed
向任何@RestController
类添加 a 时,无论是在方法级别还是级别,启动日志都不会列出该类。相反,有 line: 'Rejected bean name (rest controller class): no URL paths identified'
。
有谁知道可能导致这种情况的原因?
汪汪一只猫
相关分类