一个小需求:
在申请软件著作权的时候,需要提交一页50行,总共60页的源代码。但是设计的项目保存在多级的目录下,不想一个一个复制,遂通过python ,os模块获得全部目录的文件,re正则化过滤无效源代码,然后基于docx模块写入到word中。涉及的模块有 os, docx, re

阅读全文

正常人使用axios的时候,要获取response中的cookie,正常写法是:

axios.post('xxx.url',params)
.then(res => {
    console.log(res.headers['set-cookie'])
})
.catch(err => {
    console.log(err)
})

但是!你会你发现你得到一个undefined!
惊不惊喜?意不意外?

阅读全文

通用Mapper都可以极大的方便开发人员。可以随意的按照自己的需要选择通用方法,还可以很方便的开发自己的通用方法。

极其方便的使用MyBatis单表的增删改查。

支持单表操作,不支持通用的多表联合查询。

通用 Mapper 支持 Mybatis-3.2.4 及以上版本。

阅读全文

Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more.

阅读全文