Remove “Using default security password” on Spring Boot

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

    If you are using Spring Boot version >= 2.0 try setting this bean in your configuration:

    @Bean
    public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
        http.authorizeExchange().anyExchange().permitAll();
        return http.build();
    }
    

    Reference: https://stackoverflow.com/a/47292134/1195507

提交回复
热议问题