Buy @ Amazon

Search This Blog

March 4, 2019

What is @SpringCloudApplication?


With the release of Spring Boot 2.0, comes bundled @SpringCloudApplication annotation to make the development of Micro-services application a tad bit easier on the developer.

@SpringCloudApplication does a couple of things more than @SpringBootApplication. Both are wrapper annotations. But what do they each wrap exactly?

@SpringBootApplication = @Configuration + @EnableAutoConfiguration + @ComponentScan

@SpringCloudApplication = @SpringBootApplication + @EnableDiscoverClient + @EnableCircuitBreaker

No comments:

Post a Comment

Like it or hate it, feel free to share your feedback. Cheers!