Digital Marketing

@SpringBootApplication annotation includes Auto- Configuration, Component Scan, and Spring Boot Configuration.

If you added @SpringBootApplication annotation to the class, you do not need to add the @EnableAutoConfiguration, @ComponentScan and @SpringBootConfiguration annotation. The @SpringBootApplication annotation includes all other annotations.

Example:


Comments

Popular posts from this blog

PowerMTA sample virtual PMTA config file

How to solve: "ERROR: Maven JVM terminated unexpectedly with exit code 137"