mybatis总结

1.报错

Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-gis/spring-mybatis.xml]:
Invocation of init method failed; nested exception is org.springframework.core.NestedIOException:
Failed to parse mapping resource: 'file [F:\CCB\GIS\V5.3_V643_20160627GIS\gis-common\target\classes\com\hikvision\gis\mybatis\Typhoon.xml]';
nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException:
Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Typhoon'.
Cause: java.lang.ClassNotFoundException: Cannot find class: Typhoon

 

  解决:

添加mybatis报错,因为mybatis-config.xml没有配typhoon的配置

posted @ 2017-04-19 19:54  youdream  阅读(48)  评论(0编辑  收藏  举报