The important parts of the Java source code are:
- StoreApp.java: This is the main entry class for the application. Since this is a Spring Boot application, the main class is executable and you can start the application by just running this class from an IDE. Let's take a look at this class:
- The class is annotated with a bunch of Spring JavaConfig annotations:
@ComponentScan@EnableAutoConfiguration(exclude = {MetricFilterAutoConfiguration.class, MetricRepositoryAutoConfiguration.class})@EnableConfigurationProperties({LiquibaseProperties.class, ApplicationProperties.class})
-
- The first one, @ComponentScan, tells the Spring application to scan the source files and auto detect Spring components (Services, Repository, Resource, ...