摘要: 指定格式为“yyyy-MM-dd” 以当前月的某一天为基础 点击查看代码 @Test public void test4() { LocalDate start = LocalDate.now().with(TemporalAdjusters.firstDayOfMonth()); LocalDat 阅读全文
posted @ 2022-09-19 09:00 normalpers 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一个请求被拦截后,可以做很多操作,这里讨论的场景是外部对接的请求参数是加密数据,返回结果也是加密数据,如何把两块数据让应用无感?拦截后加密,解密。 https://www.cnblogs.com/Eric-zhao/p/11679643.html https://www.jb51.net/artic 阅读全文
posted @ 2022-04-14 10:50 normalpers 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 使用python的三方库 requests 在下载文件时,很慢。 源代码:直接根据返回内容写文件,文件并不是很大,但是写起来很慢 response = requests.post('https://xxxx', data=json.dumps(payload), headers=headers, c 阅读全文
posted @ 2022-03-07 16:10 normalpers 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: python环境3.7.4,windows环境下(支持server 2008R2,将py版本降低了),使用 pyinstaller -F app.py 命令,将程序打包为exe可执行程序。放到环境上执行就失败了。报错如下图。 源码如下: sched.add_job(operate_file, 'cr 阅读全文
posted @ 2021-10-25 15:44 normalpers 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 @fetch.get('/export') 3 def fl_query(db: Session = Depends(get_db), bank_name=None, acc_code=None, file_type=None, prod_codes=None, 4 prod_names=Non 阅读全文
posted @ 2021-08-17 15:55 normalpers 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 配置文件方式 写代码方式 阅读全文
posted @ 2021-04-23 15:42 normalpers 阅读(206) 评论(0) 推荐(0) 编辑
摘要: git branch -av 如下图 多出来的一个状态 remotes/origin/HEAD -> origin/master,导致无论怎么切换分支,HEAD都在origin/master上。 您可以使用 git remote set-head origin -d 删除 origin/HEAD 符 阅读全文
posted @ 2020-11-30 14:32 normalpers 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1,vs2013 使用 MySqlConnector 1.0.0.0 ,mysql版本8.0 2,连接地址: string myConnectionString = "server=192.168.1.0;uid=root;pwd=pwd;database=test;AllowLoadLocalIn 阅读全文
posted @ 2020-08-11 16:17 normalpers 阅读(921) 评论(0) 推荐(0) 编辑
摘要: 1, 前端项目使用vue,启动(VSCode启动),访问后端项目(idea启动),没有问题。 因为前端项目使用了proxy,可以不用关心跨域问题。 2, 前端项目使用vue,启动(VSCode启动),访问后端项目(在vmware的虚拟机上启动),出问题。 本机环境ping的通虚拟机环境,telnet 阅读全文
posted @ 2020-06-24 10:23 normalpers 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 日志框架,一看就会,一问就废,后续还是自己把理解的写在demo上,梳理下。 https://www.jianshu.com/p/9916de96cb99 https://segmentfault.com/a/1190000021745413 阅读全文
posted @ 2020-06-05 16:42 normalpers 阅读(133) 评论(0) 推荐(0) 编辑