java - Remove "Using default security password" on Spring Boot -


i added 1 custom security config in application on spring boot, message "using default security password" still there in log file.

is there remove it? not need default password. seems spring boot not recognizing security policy.

@configuration @enablewebsecurity public class customsecurityconfig extends websecurityconfigureradapter {      private final string uri = "/custom/*";      @override     public void configure(final httpsecurity http) throws exception {         http.csrf().disable();         http.headers().httpstricttransportsecurity().disable();         http.sessionmanagement().sessioncreationpolicy(sessioncreationpolicy.stateless);          // authorize sub-folders permissions         http.antmatcher(uri).authorizerequests().anyrequest().permitall();     } } 

i found out solution excluding securityautoconfiguration class.

example:

@springbootapplication(exclude = {securityautoconfiguration.class }) public class reportapplication {      public static void main(string[] args) throws exception {         springapplication.run(myapplication.class, args);     } } 

Comments

Popular posts from this blog

xslt - Substring before throwing error -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -