目录
配置代码
报错信息
解决办法
配置代码
下面的配置为响应式的配置方式
//这个配置只是配置springboot admin的一个例子,具体的配置可能比较复杂
@EnableWebFluxSecurity
public class SecurityConfig {private final AdminServerProperties adminServer;public SecurityConfig(AdminServerProperties adminServer) {this.adminServer = adminServer;}@Beanpublic SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {http.authorizeExchange(exchanges -> exchanges.matchers(EndpointRequest.to(HealthEndpoint.class, InfoEnd