当前位置:   article > 正文

org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext 87

org.springframework.boot.web.servlet.context.annotationconfigservletwebserve

全部异常如下:

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

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/576331
推荐阅读
相关标签
  

闽ICP备14008679号