spring-guides / gs-messaging-stomp-websocket

Using WebSocket to build an interactive web application :: Learn how to the send and receive messages between a browser and the server over a WebSocket

Home Page:http://spring.io/guides/gs/messaging-stomp-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EnableAutoConfiguration is explained in guide but not used in code

ge0ffrey opened this issue · comments

On this url https://spring.io/guides/gs/messaging-stomp-websocket/
it shows code like this:

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

and then explains this, which isn't used in that code:

@EnableAutoConfiguration tells Spring Boot to start adding beans based on classpath settings, other beans, and various property settings.

It is used in the code though, the full text actually explains "@SpringBootApplication is a convenience annotation that adds all of the following..." and then a list which includes @EnableAutoConfiguration. Looks like this is fine to me.

Agreed.