mybatis踩过的坑

D:\opensources\jdk1.8.0_221\bin\java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\IntelliJ IDEA 2017.3.5\lib\idea_rt.jar=62820:D:\IntelliJ IDEA 2017.3.5\bin" -Dfile.encoding=UTF-8 -classpath "D:\IntelliJ IDEA 2017.3.5\lib\idea_rt.jar;D:\IntelliJ IDEA 2017.3.5\plugins\junit\lib\junit-rt.jar;D:\IntelliJ IDEA 2017.3.5\plugins\junit\lib\junit5-rt.jar;D:\opensources\jdk1.8.0_221\jre\lib\charsets.jar;D:\opensources\jdk1.8.0_221\jre\lib\deploy.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\access-bridge-64.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\cldrdata.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\dnsns.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\jaccess.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\jfxrt.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\localedata.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\nashorn.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\sunec.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\sunjce_provider.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\sunmscapi.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\sunpkcs11.jar;D:\opensources\jdk1.8.0_221\jre\lib\ext\zipfs.jar;D:\opensources\jdk1.8.0_221\jre\lib\javaws.jar;D:\opensources\jdk1.8.0_221\jre\lib\jce.jar;D:\opensources\jdk1.8.0_221\jre\lib\jfr.jar;D:\opensources\jdk1.8.0_221\jre\lib\jfxswt.jar;D:\opensources\jdk1.8.0_221\jre\lib\jsse.jar;D:\opensources\jdk1.8.0_221\jre\lib\management-agent.jar;D:\opensources\jdk1.8.0_221\jre\lib\plugin.jar;D:\opensources\jdk1.8.0_221\jre\lib\resources.jar;D:\opensources\jdk1.8.0_221\jre\lib\rt.jar;D:\IdeaProjects\day02_eesy_01mybatisCURD\target\test-classes;D:\IdeaProjects\day02_eesy_01mybatisCURD\target\classes;D:\maven\maven_repository\org\mybatis\mybatis\3.4.5\mybatis-3.4.5.jar;D:\maven\maven_repository\mysql\mysql-connector-java\5.1.6\mysql-connector-java-5.1.6.jar;D:\maven\maven_repository\log4j\log4j\1.2.12\log4j-1.2.12.jar;D:\maven\maven_repository\junit\junit\4.10\junit-4.10.jar;D:\maven\maven_repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar" com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.itheima.test.MybatisTest
2020-10-11 09:32:20,709 0      [           main] DEBUG ache.ibatis.logging.LogFactory  - Logging initialized using 'class org.apache.ibatis.logging.log4j.Log4jImpl' adapter.

org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'PO0LED'.  Cause: java.lang.ClassNotFoundException: Cannot find class: PO0LED

	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:80)
	at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:64)
	at com.itheima.test.MybatisTest.testFindAll(MybatisTest.java:23)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'PO0LED'.  Cause: java.lang.ClassNotFoundException: Cannot find class: PO0LED
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:121)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:99)
	at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:78)
	... 24 more
Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'PO0LED'.  Cause: java.lang.ClassNotFoundException: Cannot find class: PO0LED
	at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.dataSourceElement(XMLConfigBuilder.java:325)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.environmentsElement(XMLConfigBuilder.java:280)
	at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:116)
	... 26 more
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'PO0LED'.  Cause: java.lang.ClassNotFoundException: Cannot find class: PO0LED
	at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120)
	at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149)
	at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116)
	... 29 more
Caused by: java.lang.ClassNotFoundException: Cannot find class: PO0LED
	at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200)
	at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
	at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
	at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116)
	... 31 more


Process finished with exit code -1
在这里插入代码片

在这里插入图片描述
idea的大写o和0一模一样

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值