@Configuration@EnableWebSecuritypublic class SecurityConfiguration extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); }}
此外,我必须添加以下依赖项:
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-rsa</artifactId> <version>1.0.5.RELEASE</version> </dependency>
我在以下GitHub问题中找到了该解决方案:https : //github.com/spring-cloud/spring-cloud-
config/issues/950
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)