Remove “Using default security password” on Spring Boot

后端 未结 18 2186
小鲜肉
小鲜肉 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:28

    I came across the same problem and adding this line to my application.properties solved the issue.

    spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
    

    It's one of the Spring's Automatic stuffs which you exclude it like excluding other stuffs such as actuators. I recommend looking at this link

提交回复
热议问题