I have a question about Spring annotation configurations. I have a bean:
@Bean public ObservationWebSocketClient observationWebSocketClient(){ log.info(&
Annotate your bean method with @ConditionalOnProperty("createWebSocket").
@ConditionalOnProperty("createWebSocket")
Note that Spring Boot offers a number of useful conditions prepackaged.