项目在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
实现类有没有加注解啊?有没有重新 编译再打包。