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

javascript - oscilloscope of speaker input stops rendering after a few seconds -

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

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -