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
Post a Comment