|
@@ -21,7 +21,7 @@ import org.springframework.web.filter.CorsFilter;
|
|
|
|
|
|
/**
|
|
|
* spring security配置
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
*/
|
|
|
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
|
|
@@ -32,7 +32,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
*/
|
|
|
@Autowired
|
|
|
private UserDetailsService userDetailsService;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 认证失败处理类
|
|
|
*/
|
|
@@ -59,7 +59,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
|
|
|
@Autowired
|
|
|
private AdminServerProperties adminServerProperties;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 解决 无法直接注入 AuthenticationManager
|
|
|
*
|
|
@@ -112,7 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
.antMatchers("/profile/**").anonymous()
|
|
|
.antMatchers("/common/download**").anonymous()
|
|
|
.antMatchers("/common/download/resource**").anonymous()
|
|
|
- .antMatchers("/swagger-ui.html").anonymous()
|
|
|
+ .antMatchers("/doc.html").anonymous()
|
|
|
.antMatchers("/swagger-resources/**").anonymous()
|
|
|
.antMatchers("/webjars/**").anonymous()
|
|
|
.antMatchers("/*/api-docs").anonymous()
|
|
@@ -135,7 +135,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 强散列哈希加密实现
|
|
|
*/
|