2020年1月3日

摘要: Windows电脑VBOX Centos下使用Docker安装mysql5.7 阅读全文
posted @ 2020-01-03 10:09 tomcat and jerry 阅读(207) 评论(0) 推荐(0) 编辑

2019年12月12日

摘要: Java追加文件,文件合并 阅读全文
posted @ 2019-12-12 16:59 tomcat and jerry 阅读(424) 评论(0) 推荐(0) 编辑

2019年9月18日

摘要: 发现搜到的全部一样的方案 new String(fileName.getBytes(), "ISO8859-1") 贴一个不一样的解决方案 使用URLEncoder.encode 阅读全文
posted @ 2019-09-18 14:31 tomcat and jerry 阅读(11515) 评论(2) 推荐(2) 编辑

2019年1月31日

摘要: lombok可以使实体更简洁,主要是会在编译.class文件期间,生成get/set方法,还有hash/equals/toString等。 主要是可以让代码更简洁。 在maven项目的pom依赖: Maven scope=provided的作用范围:参考:http://maven.apache.or 阅读全文
posted @ 2019-01-31 16:00 tomcat and jerry 阅读(5613) 评论(0) 推荐(0) 编辑

2019年1月28日

摘要: # Spring Mock Test ## Mock测试背景 ``` https://www.infoq.com/articles/stubbing-mocking-service-virtualization-differences ``` ### 正常情况下,Spring推荐使用接口interf 阅读全文
posted @ 2019-01-28 15:08 tomcat and jerry 阅读(546) 评论(0) 推荐(0) 编辑

2018年12月29日

摘要: Maven项目有时候有一些私有jar 比如:oracle的驱动 如果是boot项目,要打进jar包有多种方式: 方法1. 手动install jar到本地maven仓库,然后pom里面依赖 方法2. 安装nexus私有仓库,然后上传到私有仓库,pom配置仓库. https://www.cnblogs 阅读全文
posted @ 2018-12-29 17:38 tomcat and jerry 阅读(1887) 评论(0) 推荐(0) 编辑

2018年12月14日

摘要: 普通文件读取,通常使用FileReader 解决方案: 用InputStreamReader包装一层,并指定字符集 阅读全文
posted @ 2018-12-14 15:32 tomcat and jerry 阅读(2133) 评论(0) 推荐(0) 编辑

2018年11月28日

摘要: 参考:https://blog.csdn.net/liguo9860/article/details/6874040 我这里就说一下使用Spring的JavaMailSender如何实现 1. 配置JavaMailSender 2. 发送邮件 阅读全文
posted @ 2018-11-28 17:41 tomcat and jerry 阅读(277) 评论(0) 推荐(0) 编辑

2018年6月5日

摘要: 利用Jackson的JsonFilter来实现动态过滤数据列。 也就是说,同一个实体,你配置了不同的@JsonFilter,通过Jackson展现的结果可以是不一样的。 举个栗子: 默认不做任何配置的话,通过Jackson序列化出来的结果是: 可是password不应该要展示,方法有多种: 方法1: 阅读全文
posted @ 2018-06-05 15:18 tomcat and jerry 阅读(11838) 评论(3) 推荐(1) 编辑

2017年12月25日

摘要: The general format of the field is: where the value is a comma+space separated list of IP addresses, the left-most being the original client, and each 阅读全文
posted @ 2017-12-25 17:01 tomcat and jerry 阅读(3460) 评论(0) 推荐(0) 编辑

导航