二次开发遇到的问题

提问 2 1437
xue
xue 2019-03-11
版本:renren-fast 2.0 开发环境:
把security-enterprise\renren-admin\src\main\java 下的io.renren.admin 改成 com.test.my。有哪几个地方要修改?我已经改了mapper中的xml文件和common\aspect\DataFilterAspect.java 、LogOperationAspect(改了这两个地方启动报org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mailTemplateController': Unsatisfied dependency expressed through field 'sysMailTemplateService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysMailTemplateServiceImpl': Unsatisfied dependency expressed through field 'emailUtils'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailUtils': Unsatisfied dependency expressed through field 'sysParamsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysParamsServiceImpl': Unsatisfied dependency expressed through field 'sysParamsRedis'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysParamsRedis': Unsatisfied dependency expressed through field 'redisUtils'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'io.renren.common.redis.RedisUtils' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)})。请求还有哪些地方需要修改。
回帖
  • 修改包名的正确方法是: 1.修改文件夹名称 2.利用开发工具,全局替换 这样,就能改干净,速度也很快
    0 回复
  • xue
    xue (楼主)
    2019-03-12
    我用eclipse工具 ,修改了 还是不行
    0 回复