qq_41743337
Tttkk
2018-12-12 12:10

maven项目发布到阿里云报错在windows下没有问题

  • linux

项目在windows测试没有问题 为什么在linux下报这个错
Error creating bean with name 'activityService': Unsatisfied dependency expressed through field 'mapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityMapper' defined in URL [jar:file:/data/apps/xiongmao22.jar!/BOOT-INF/classes!/com/tatadai/mapper/ActivityMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/tatadai/conf/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactoryBean' threw exception; nested exception is java.lang.RuntimeException: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [mapper/NewLoanMapper.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 'Loan'. Cause: java.lang.ClassNotFoundException: Cannot find class: Loan

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答