簡體   English   中英

Eclipse 2021-12 未連接到 MySQL

[英]Eclipse 2021-12 not connecting to MySQL

我正在使用一個使用 spring v4.2.3 和 hibernate v4.0.1 的遺留項目。 The project works like a charm on Eclipse neon version, however, when trying to connect with the eclipse 2021-12 it shows that unable to connect to underlying database, all the rest of the configs are read right in terms of controllers mapping and everything. 我正在使用 java 8 和 tomcat 7。數據庫屬性存儲在 .properties 文件中。 項目中是否需要添加任何內容,或者這根本不起作用?

在此處輸入圖像描述

我認為您需要將 jpa 存儲庫添加到您的 pom.xml 文件中

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>2.6.1</version>
</dependency>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM