Java source

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, ...

Get Full Stack Development with JHipster now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.