共有 3 个文件被更改,包括 24 次插入 和 8 次删除
@ -0,0 +1,15 @@ |
|||||
|
package com.trgis.sb2sc.config; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
@EnableWebSecurity |
||||
|
class WebSecurityConfig extends WebSecurityConfigurerAdapter { |
||||
|
|
||||
|
@Override |
||||
|
protected void configure(HttpSecurity http) throws Exception { |
||||
|
http.csrf().ignoringAntMatchers("/eureka/**"); |
||||
|
super.configure(http); |
||||
|
} |
||||
|
} |
正在加载...
在新工单中引用