不管哪里报错都是提示这个错误,遇到两次
第一次:
给注册中心添加密码的时候忘了
添加配置类
//开启web安全认证
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable(); //禁用csrf检测
super.configure(http);
}
}
第二次:
添加账号密码后yml文件忘了加
版权声明:本文为zhhhhhh1213原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。