Remove “Using default security password” on Spring Boot

后端 未结 18 2173
小鲜肉
小鲜肉 2020-12-04 12:13

I added one custom Security Config in my application on Spring Boot, but the message about \"Using default security password\" is still there in LOG file.

Is there a

18条回答
  •  -上瘾入骨i
    2020-12-04 12:21

    I found out a solution about excluding SecurityAutoConfiguration class.

    Example:

    @SpringBootApplication(exclude = {SecurityAutoConfiguration.class })
    public class ReportApplication {
    
        public static void main(String[] args) throws Exception {
            SpringApplication.run(MyApplication.class, args);
        }
    }
    

提交回复
热议问题