spring boot迁移dao报错
来源:1-2 开发准备
慕码人2032016
2022-09-11
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
1回答
-
翔仔
2022-09-11
同学好,感觉配置没迁全,但是具体原因不好定位,建议跟着视频再迁移一次dao层。因为程序说1是1 不可能一摸一样大家都行就自己的不行,肯定还是哪里配置错了。
00
相似问题
回答 1
回答 1
回答 2
回答 2
回答 1