spring SecurityConfiguration中拦截url
2017-05-16 11:33
260 查看
@Override public void configure(WebSecurity web) throws Exception { web.ignoring() .antMatchers(HttpMethod.OPTIONS, "/**") .antMatchers("/app/**/*.{js,html}") .antMatchers("/bower_components/**") .antMatchers("/i18n/**") .antMatchers("/content/**") .antMatchers("/swagger-ui/index.html") .antMatchers("/api/register") .antMatchers("/api/activate") .antMatchers("/api/account/reset_password/init") .antMatchers("/api/account/reset_password/finish") .antMatchers("/test/**") .antMatchers("/api/selfService"); }
configure中可以添加放行的url,比如js,国际化文件,页面等
相关文章推荐
- 关于spring-security登录后重定向至拦截前访问的url的实现原理
- 关于spring-security登录后重定向至拦截前访问的url的实现原理
- SpringBoot中实现拦截器级别的URl访问过快拦截,并利用JPA实现IP黑名单的功能。
- Spring security invalid-session-url 的坑(配了permitAll仍然跳转到登录页)
- Spring Security Core Plugin - 5. 配置到安全URL的请求映射
- spring securiy4如何动态加载URL拦截规则
- Springboot + shiro 整合之Url拦截设置
- Spring Security @PreAuthorize 拦截无效
- Spring boot + Spring Security + thymeleaf表单提交被拦截问题
- spring 拦截器过滤登录url 不验证是否登录其他的都拦截验证是否登录才能访问url
- spring boot / cloud (十四) 微服务间远程服务调用的认证和鉴权的思考和设计,以及restFul风格的url匹配拦截方法
- Spring使用注解方式对url进行拦截
- Spring boot + Spring Security CSS静态资源拦截问题
- [spring security] - Spring security LDAP configuration - Search approach
- spring security java configuration
- SpringBoot+SpringSecurity误拦截静态资源问题调研
- Springboot + shiro 整合之Url拦截设置(转)
- springboot url拦截定制
- Security Configuration Benchmark For MySQL 4.1, 5.0, 5.1 Community Editions
- spring_security-安全框架