跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • srpingboot 多数据源问题
未分類
29 5 月 2020

srpingboot 多数据源问题

srpingboot 多数据源问题

資深大佬 : sanstones 1

在一次二次开发中,之前用的数据库是 postgres,一切正常 现要新接入新的数据源 希望在不改动之前代码的情况下对新的数据库进行操作 因为 springboot 的自动配置 项目启动不起来 求各位大佬给一个解决方案 小弟不胜感激

报错信息如下: Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. 2020-05-27 09:30:56,442 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter –

APPLICATION FAILED TO START

Description:

Field relationRepository in org.thingsboard.server.dao.sql.relation.JpaRelationDao required a bean named ‘entityManagerFactory’ that could not be found.

The injection point has the following annotations: – @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean named ‘entityManagerFactory’ in your configuration.

大佬有話說 (2)

  • 資深大佬 : chendy

    Consider defining a bean named ‘entityManagerFactory’ in your configuration.

    都已经写这么清楚了…

  • 資深大佬 : hantsy

    远古时代的代码吧。

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具