Yongqi Lei
Results
1
comments of
Yongqi Lei
关于eureka server 配置安全验证的问题 ``` @EnableWebSecurity static class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); } } ``` 楼主,请问这段代码必须要在启动类里面添加这个才会生效吗? Spring Boot Version:2.1.3.RELEASE Spring Cloud:Greenwich.RELEASE 我将这一段代码配置配置在启动类以外的新建的包,结果不行,其他服务注册不上。...