| | |
| | | // 过滤请求 |
| | | .authorizeRequests() |
| | | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken").anonymous() |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/GiLink/getCode").anonymous() |
| | | .antMatchers( |
| | | HttpMethod.GET, |
| | | "/", |
| | |
| | | .antMatchers("/swagger-ui.html").permitAll() |
| | | .antMatchers("/swagger-resources/**").permitAll() |
| | | .antMatchers("/webjars/**").permitAll() |
| | | .antMatchers("/*/api-docs").permitAll() |
| | | // .antMatchers("/*/api-docs").permitAll() |
| | | // .antMatchers("/druid/**").anonymous() |
| | | // 除上面外的所有请求全部需要鉴权认证 |
| | | .anyRequest().authenticated() |