Spring security 将spring安全性从3.2.7.RELEASE迁移到4.0.0.RELEASE
刚从3.2.7迁移到4.0.1,出现了这个问题 我的配置:Spring security 将spring安全性从3.2.7.RELEASE迁移到4.0.0.RELEASE,spring-security,Spring Security,刚从3.2.7迁移到4.0.1,出现了这个问题 我的配置: http .anonymous().disable() .authorizeRequests() .antMatchers("/*Service/**") .hasIpAddress(subnetMask) 3.2.7:答复200 4.0.1:授权失败 结果显示默认角色前缀已添加到ConfigAttribute `@EnableGlobalMethodSecurity(jsr250Enabled=true) public class
http .anonymous().disable() .authorizeRequests() .antMatchers("/*Service/**") .hasIpAddress(subnetMask)
3.2.7:答复200
4.0.1:授权失败
结果显示默认角色前缀已添加到ConfigAttribute
`@EnableGlobalMethodSecurity(jsr250Enabled=true)
public class SecurityConfiguration extends GlobalMethodSecurityConfiguration
@Inject Jsr250MethodSecurityMetadataSource ms;
ms.setDefaultRolePrefix("R_");`