parent
598e115bf9
commit
f355962bf2
4 changed files with 32 additions and 2 deletions
@ -0,0 +1,21 @@ |
||||
package com.blockchain.spring.cloud.eureka; |
||||
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity; |
||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; |
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
||||
|
||||
/** |
||||
* \* <p>Desciption:</p> |
||||
* \* CreateTime: 2019/5/7 11:01 |
||||
* \* User: XianChaoWei |
||||
* \* Version: V1.0 |
||||
* \ |
||||
*/ |
||||
@EnableWebSecurity |
||||
public class SecurityConf extends WebSecurityConfigurerAdapter { |
||||
@Override |
||||
protected void configure(HttpSecurity http) throws Exception { |
||||
http.csrf().disable(); |
||||
super.configure(http); |
||||
} |
||||
} |
Loading…
Reference in new issue