Tutorial by Examples

The most basic way to structure your code using spring boot for good automatic package scanning is using @SpringBootApplication annotation. This annotation provide in itself 3 other annotations that helps with automatic scanning: @SpringBootConfiguration, @EnableAutoConfiguration, @ComponentScan (mo...
You can use @ComponentScan in order to configure more complex package scanning. There is also @ComponentScans that act as a container annotation that aggregates several @ComponentScan annotations. Basic code examples @ComponentScan public class DemoAutoConfiguration { } @ComponentScans({@Co...
Spring boot is based on a lot of pre-made auto-configuration parent projects. You should already be familiar with spring boot starter projects. You can easily create your own starter project by doing the following easy steps: Create some @Configuration classes to define default beans. You should...

Page 1 of 1