当前使用版本(必填,否则不予处理)
该问题是如何引起的?(确定最新版也有问题再提!!!)
工程里面用了mybatis-plus,但是jar包里面用了原生的mybatis
重现步骤(如果有就写完整)
报错信息
2021-05-17 22:05:35.864 WARN 48705 --- [main] org.springframework.web.context.support.GenericWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.VerifyError: StackMapTable error: bad offset
Current Frame:
bci: @32
flags: { }
locals: { 'org/mybatis/spring/SqlSessionFactoryBean', 'org/apache/ibatis/session/Configuration', 'org/apache/ibatis/builder/xml/XMLConfigBuilder' }
stack: { }
Bytecode:
0x0000000: 2a2a b403 2db8 0333 014d 2ab4 0016 c600
0x0000010: 2f2a b400 164c 2bb6 0026 c700 0e2b 2ab4
0x0000020: 0018 b600 27a7 0065 2ab4 0018 c600 5e2b
0x0000030: b600 262a b400 18b6 0028 a700 502a b400
0x0000040: 15c6 0021 bb00 2959 2ab4 0015 b900 2a01
0x0000050: 0001 2ab4 0018 b700 2b4d 2cb6 002c 4ca7
0x0000060: 002b b200 2dba 002e 0000 b600 2fbb 0030
0x0000070: 59b7 0031 4c2a b400 18b8 0032 2b59 b600
0x0000080: 3357 ba00 3400 00b6 0035 2ab4 0008 b800
0x0000090: 322b 59b6 0033 57ba 0036 0000 b600 352a
0x00000a0: b400 09b8 0032 2b59 b600 3357 ba00 3700
0x00000b0: 00b6 0035 2ab4 000b b800 322b 59b6 0033
0x00000c0: 57ba 0038 0000 b600 352a b400 0eb8 0039
0x00000d0: 9900 452a 2ab4 000e 2ab4 000f b700 3ab9
Comment From: qmdx
为了避免冲突问题,请使用 mp 引入版本 mybatis ,反馈问题无法重现问题,请重新详细反馈