解决:did not exist: javax.persistence.Table.indexes()[Ljavax/persistence/Index
1、问题
刚刚在用springboot配置多数据源时,报错如下:
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
- org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions(EntityBinder.java:1236)
The following method did not exist: javax.persistence.Table.indexes()[Ljavax/persistence/Index;
The method's class, javax.persistence.Table, is available from the following locations:
- jar:file:/C:/practice/springboot/lib/javax.persistence.jar!/javax/persistence/Table.class
- jar:file:/C:/Users/jiayou/.m2/repository/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.jar!/javax/persistence/Table.class
It was loaded from the following location:
- file:/C:/practice/springboot/lib/javax.persistence.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of javax.persistence.Table
2、分析
看了这个链接 NoSuchMethodError in javax.persistence.Table.indexes()[Ljavax/persistence/Index,找到了原因:
当前项目和仓库同时提供了Table.class的类路径。
3、解决
在当前项目的库中删除下面的jar包:
解决:did not exist: javax.persistence.Table.indexes()[Ljavax/persistence/Index相关推荐
- Springboot 项目金蝶中间件AAS-9.0启动报错 javax.persistence.Table.indexes()[Ljavax/persistence/Index 问题解决
Springboot 项目金蝶中间件AAS-9.0启动报错 java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/ ...
- java.lang.NoSuchMethodError:javax.persistence.PersistenceContext.synchronization()Ljavax/persistence
现象:项目本地运行正常,打包后部署到tomcat报上边的错 原因:项目使用的实例化相关包和tomcat中自带的包冲突了! 冲突的jar: <dependency><groupId&g ...
- 错误:compatible versions of theorg.hibernate.cfg.annotations.EntityBinder and javx.persistence.Table冲突
错误 :Correct the classpath of your application so that it contains compatible versions of the classes ...
- hive整合HBase:HBase table xsg:test05 doesn't exist while the table is declared as an external table
版本 虚拟机centOS7 hive 1.2.1 hbase 1.2.6 1,在hive-site.xml中添加配置 <property><name>hbase.zookeep ...
- 解决 “OperationalError: (sqlite3.OperationalError) no such table: ...“问题
解决 "OperationalError: (sqlite3.OperationalError) no such table: ..."问题 参考文章: (1)解决 "O ...
- 动态处理表格多行合并单元格、同时解决hover错乱问题 - Vue Element Table
简介: el-table单元格合并,处理hover错乱问题,自定义底部合计栏. 如图所示: 源码(复制另存txt,修改.html直接运行) <!DOCTYPE html> <html ...
- 【registry】 javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
1.背景 在 [registries]registrie rest-service idea 无法引入的背景下,以及 [registry]NoSuchFieldError: INCLUDE_ALL 以 ...
- BI_开发_问题:ORA-26002: Table DWH.W_XACT_TYPE_D has index defined upon it.
Database errors occurred: ORA-26002: Table DWH.W_XACT_TYPE_D has index defined upon it. Database dri ...
- 解析:type t_string is table of varchar2(32767) index by binary_integer
@ 理解一: table 相当于是数组,这里定义了一个数组类型t_string; INDEX BY BINARY_INTEGER这里是定义数组下标是整数,因为ORACLE中下标可以是字符串. VARC ...
最新文章
- Installshield 2015 实现检测某安装文件是否存在并运行安装
- 【NCEPU】王子朝:神经网络、支持向量机原理
- android8显示广播,关于android8.0静态接收广播
- Android 做项目总结
- C++(Goto使用实例)
- 机器学习实战之SVM
- Android studio libs目录
- boost::container实现emplace进位的程序
- cassandra可视化工具_一位数据科学家的私房工具清单
- NOD32企业内部更新服务器搭建
- WPS翻译公式之谷歌翻译公式
- html 页面没有鼠标,网页上鼠标箭头不见了 电脑上不显示鼠标箭头怎么办?
- 这是我见过最好的唐诗,而且通俗易懂
- 微信开发流程总结(基于微信平台)
- sleep() 和 wait() 有什么区别
- —【动态规划】凸多边形最优三角剖分
- php 5 php.ini中文注释
- 时尚星球_时尚和科技属于一起吗?
- MySQL的下载和配置
- 如何在VS201里引用ActiveX类型的引用
热门文章
- 3星|《三联生活周刊》2017年48期:联大外文系主任叶公超让学生念一句英语就能判断出学生的籍贯...
- 数据库怎么保证(分布式)事务一致性
- go语言基础-----18-----协程安全、互斥锁、读写锁、匿名锁、sync.Once
- 清除qW3xT.2 这个挖矿工木马的过程
- npm ci和npm install区别
- linux使用X11捕捉鼠标,X11获取鼠标的位置
- 数据库事务 四大特性
- nginx access日志按时间进行分割
- 维基百科,全世界的百科全书—Jimmy Wales
- For pooled tables, cluster tables, and projection views, JOIN is not allowed: “BSEG“.