2021
02-01
02-01
使用SpringBoot跨系统调用接口的方案
一、简介项目开发中存在系统之间互调问题,又不想用dubbo,这里提供几种springboot方案:1、使用Feign进行消费(推荐)2、使用原始httpClient请求3、使用RestTemplate方法二、方案方案一:使用Feign进行消费(推荐)1、在maven中添加依赖<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-openfeign</artifactId><version>2.2.2</version></dependency>2、启动类上加上@EnableFeignCl...
继续阅读 >
在工作中经常遇到需要打开许多个excel表格,然后合并的需求,合并的同时要求格式必须原汁原味的保留。利用VBA代码可以比较轻松的解决,现在我们来看Python中如何实现。上代码:fromopenpyxlimportWorkbookfromwin32com.clientimportDispatchimportosimportdatetimedefcopy_excel_file(source_file_list,destination_file):run_app=Dispatch('Excel.Application')run_app.Visible=False#改为True可以看到exce...