Reputation: 47
Getting health check link redirected to Sign on Page after boot upgrade
Need help to prevent health check link getting redirected to sign on page
Upvotes: 0
Views: 722
Reputation: 853
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);
}
}
Upvotes: 1