目錄
配置代碼
報錯信息
解決辦法
配置代碼
下面的配置為響應式的配置方式
//這個配置只是配置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