官术网_书友最值得收藏!

How it works...

As we can see, the application started just fine, but as we didn't add any functionality or configure any services, it existed straight away. From the startup log, however, we do see that the autoconfiguration did take place. Let's take a look at the following lines:

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

This information tells us that, because we added the jdbc and data-jpa starters, the JPA container was created and will use Hibernate 5.2.12.Final to manage the persistence using H2Dialect. This was possible because we had the right classes in the classpath.

主站蜘蛛池模板: 镇远县| 绩溪县| 杨浦区| 钦州市| 辰溪县| 石城县| 宣城市| 聂拉木县| 黄冈市| 五大连池市| 葵青区| 建瓯市| 邻水| 三河市| 原阳县| 繁峙县| 罗山县| 麦盖提县| 临沭县| 商城县| 和田县| 九江市| 化隆| 富裕县| 汝州市| 宁明县| 吉木萨尔县| 常山县| 石台县| 磴口县| 辽阳县| 张家口市| 汾阳市| 平罗县| 阿坝县| 车致| 灵台县| 宁波市| 二连浩特市| 乌拉特前旗| 乾安县|