tag:blogger.com,1999:blog-694855878384792308.post5020570585926839532..comments2024-03-21T06:26:49.387-07:00Comments on Java67: Difference between @SpringBootApplication vs @EnableAutoConfiguration annotations in Spring Boot? Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-694855878384792308.post-81501692892348693832020-03-01T00:32:43.372-08:002020-03-01T00:32:43.372-08:00public @interface SpringBootApplication {
/**
...public @interface SpringBootApplication {<br /><br /> /**<br /> * Exclude specific auto-configuration classes such that they will never be applied.<br /> * @return the classes to exclude<br /> */<br /> @AliasFor(annotation = EnableAutoConfiguration.class)<br /> Class[] exclude() default {};Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-84413216172646039072020-03-01T00:31:15.363-08:002020-03-01T00:31:15.363-08:00Is that really true? SpringBootApplication has an ...Is that really true? SpringBootApplication has an exclude argument that you can use to disable @Configuration classes. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-46648775137462547032020-02-03T04:49:02.895-08:002020-02-03T04:49:02.895-08:00glad you find it usefulglad you find it usefuljavin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-71838429333081941032020-02-03T03:15:48.393-08:002020-02-03T03:15:48.393-08:00Well explained!Thank youWell explained!Thank youokhttps://www.blogger.com/profile/03935370989650777111noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-30769104731880191242019-10-11T05:06:06.898-07:002019-10-11T05:06:06.898-07:00The exclusion option is not supported on @SpringBo...The exclusion option is not supported on @SpringBootApplicaiton, so if you need some advanced features like that you need to use dedicated annotations. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-64637595118742026002019-10-11T03:47:50.916-07:002019-10-11T03:47:50.916-07:00hello,i have a doubt,according to your explanation...hello,i have a doubt,according to your explanation,Instead of above 3 annotations,we have to use @springbootapplication right,but why we have to use @enableautoconfiguration for classpath.Anonymousnoreply@blogger.com