20200710 idea springboot打包问题

20200710 idea springboot打包问题

idea 2020
从new-test拉代码
先checkout后rename为new-test-xxxxx,然后mvn clean package打包成功后上传到sit环境,跑一下服务,报错:

在这里插入图片描述

2020-07-10 15:10:36.153  INFO 52501 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2020-07-10 15:10:36.479  WARN 52501 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'extSupBankAcctController.v1': Unsatisfied dependency expressed through field 'extSupBankAcctService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'extSupBankAcctServiceImpl': Unsatisfied dependency expressed through field 'supplierBkAccountEsRepository'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'supplierBkAccountEsRepositoryImpl': Unsatisfied dependency expressed through field 'mapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'supplierBkAccountEsMapper' defined in URL [jar:file:/srm_file/srm-supplier/libs/srm-supplier.jar!/BOOT-INF/classes!/org/hzero/srm/supplier/infra/mapper/SupplierBkAccountEsMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$f4d0ac39]: Constructor threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.hzero.boot.platform.mybatis.autoconfigure.SqlParserInterceptorConfiguration': Unsatisfied dependency expressed through method 'setSqlInterceptors' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flexSqlInterceptor': Unsatisfied dependency expressed through field 'modelService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'modelServiceImpl': Unsatisfied dependency expressed through field 'flexRemoteService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.hzero.boot.platform.flex.feign.FlexRemoteService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'feign.codec.Encoder' available: expected single matching bean but found 2: feignEncoder,feignFormEncoder
2020-07-10 15:10:36.480  INFO 52501 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
2020-07-10 15:10:36.482  INFO 52501 --- [           main] s.c.a.AnnotationConfigApplicationContext : Closing FeignContext-hzero-platform: startup date [Fri Jul 10 15:10:35 CST 2020]; parent: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@67e2d983

也尝试过先从new-test选择new branch from selected …名字为new-test-xxxxx然后mvn clean package成功上传sit跑也会报错

把本地分支new-test-xxxxx名字改回new-test然后打包上传就可以跑起来

2020/7/13报错
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值