eureka 客户端注册Cannot execute request on any known server解决

eureka server 重写一个配置类即可

@EnableWebSecurity
class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.csrf().ignoringAntMatchers("/eureka/**");
        super.configure(http);
    }
}

  

posted @ 2021-01-17 17:08  浅笑19  阅读(141)  评论(0编辑  收藏  举报