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

项目在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个回答

实现类有没有加注解啊?有没有重新 编译再打包。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问