The SpringBootApplication class

Let's create a SpringBootApplication class to be able to run the Spring Boot application. The following snippet shows a simple example:

    @SpringBootApplication    public class SpringDataJpaFirstExampleApplication {      public static void main(String[] args) {        SpringApplication.run(         SpringDataJpaFirstExampleApplication.class, args);      }    }

The following snippet shows some of the logs generated when we run SpringDataJpaFirstExampleApplication as a Java application:

LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'org.hibernate.Version : HHH000412: Hibernate Core {5.0.11.Final}org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect ...

Get Mastering Spring 5.0 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.