[英]Spring boot health check redirecting to Sign on page on Boot upgrade
management:
server:
port: 12000 # diffrent from server.port
endpoints:
web:
base-path: /mgmt
exposure:
include: "*"
@Configuration
@EnableWebSecurity
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
public void configure(WebSecurity web) throws Exception {
String [] notauthlist = {"/mgmt/**"};
web.ignoring().antMatchers(notauthlist);
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.