请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

spring boot迁移dao报错

Rerun testQueryArea()
com.imooc.o2o.dao.AreaDaoTest
testQueryArea(com.imooc.o2o.dao.AreaDaoTest)
java.lang.AbstractMethodError
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:78)
at jdk.proxy3/jdk.proxy3.Proxy111.isClosed(UnknownSource)atorg.apache.ibatis.executor.BaseExecutor.closeStatement(BaseExecutor.java:285)atorg.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65)atorg.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:326)atorg.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)atjava.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)atjava.base/java.lang.reflect.Method.invoke(Method.java:577)atorg.mybatis.spring.SqlSessionTemplateProxy111.isClosed(Unknown Source) at org.apache.ibatis.executor.BaseExecutor.closeStatement(BaseExecutor.java:285) at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65) at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:326) at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at org.mybatis.spring.SqlSessionTemplateProxy111.isClosed(UnknownSource)atorg.apache.ibatis.executor.BaseExecutor.closeStatement(BaseExecutor.java:285)atorg.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:65)atorg.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:326)atorg.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)atorg.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)atorg.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)atjava.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)atjava.base/java.lang.reflect.Method.invoke(Method.java:577)atorg.mybatis.spring.SqlSessionTemplateSqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
at jdk.proxy2/jdk.proxy2.Proxy67.selectList(UnknownSource)atorg.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)atorg.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139)atorg.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76)atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)atjdk.proxy2/jdk.proxy2.Proxy67.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230) at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at jdk.proxy2/jdk.proxy2.Proxy67.selectList(UnknownSource)atorg.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)atorg.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139)atorg.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76)atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)atjdk.proxy2/jdk.proxy2.Proxy76.queryArea(Unknown Source)
at com.imooc.o2o.dao.AreaDaoTest.testQueryArea(AreaDaoTest.java:21)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
at

正在回答 回答被采纳积分+3

1回答

翔仔 2022-09-11 23:31:00

同学好,感觉配置没迁全,但是具体原因不好定位,建议跟着视频再迁移一次dao层。因为程序说1是1 不可能一摸一样大家都行就自己的不行,肯定还是哪里配置错了。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信