赞
踩
全部异常如下:
2019-01-23 09:02:01.534 [restartedMain] WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext 87 -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aprvBusService': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aprvBusMapper' defined in file [H:\工作区\ly-yunge\ly-yunge-mapper\target\classes\com\ly\yunge\mapper\basic\AprvBusMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/ly/core/config/DynamicDataSourceConfiguration.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 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [H:\工作区\ly-yunge\ly-yunge-mapper\target\classes\mappers\qualitymgmt\MeasInfoMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.DATETIME
错误原因:在mybatis配置resultMap的时候 jdbctype 类型错了
1、类型全部要大写,
2、datetime 的类型是 TIMESTAMP
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。