Remove “Using default security password” on Spring Boot

后端 未结 18 2201
小鲜肉
小鲜肉 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条回答
  •  清歌不尽
    2020-12-04 12:38

    It didn't work for me when I excluded SecurityAutoConfiguration using @SpringBootApplication annotation, but did work when I excluded it in @EnableAutoConfiguration:

    @EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class })
    

提交回复
热议问题