Let us integrate Hibernate 5 to the Spring 5 application using the following steps:
- Convert the Maven project ch12-hiber to a Spring Boot application by adding the following Spring Boot 2.0.0.M2 starter POM dependencies, such as webflux, actuator, and JDBC, with some support plugins such as the MySQL connector.
- Hibernate 5 has no dedicated starter POM in Spring Boot 2.0, but it is by default contained in the Spring Data JPA starter POM. Since adding the ORM framework is covered by the Spring MVC module, it is mandatory to include the Spring MVC starter POM in the Maven configuration, as follows:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> ...