摘要:
Windows电脑VBOX Centos下使用Docker安装mysql5.7 阅读全文
摘要:
Java追加文件,文件合并 阅读全文
摘要:
发现搜到的全部一样的方案 new String(fileName.getBytes(), "ISO8859-1") 贴一个不一样的解决方案 使用URLEncoder.encode 阅读全文
摘要:
lombok可以使实体更简洁,主要是会在编译.class文件期间,生成get/set方法,还有hash/equals/toString等。 主要是可以让代码更简洁。 在maven项目的pom依赖: Maven scope=provided的作用范围:参考:http://maven.apache.or 阅读全文
摘要:
# Spring Mock Test ## Mock测试背景 ``` https://www.infoq.com/articles/stubbing-mocking-service-virtualization-differences ``` ### 正常情况下,Spring推荐使用接口interf 阅读全文
摘要:
Maven项目有时候有一些私有jar 比如:oracle的驱动 如果是boot项目,要打进jar包有多种方式: 方法1. 手动install jar到本地maven仓库,然后pom里面依赖 方法2. 安装nexus私有仓库,然后上传到私有仓库,pom配置仓库. https://www.cnblogs 阅读全文
摘要:
普通文件读取,通常使用FileReader 解决方案: 用InputStreamReader包装一层,并指定字符集 阅读全文
摘要:
参考:https://blog.csdn.net/liguo9860/article/details/6874040 我这里就说一下使用Spring的JavaMailSender如何实现 1. 配置JavaMailSender 2. 发送邮件 阅读全文
摘要:
利用Jackson的JsonFilter来实现动态过滤数据列。 也就是说,同一个实体,你配置了不同的@JsonFilter,通过Jackson展现的结果可以是不一样的。 举个栗子: 默认不做任何配置的话,通过Jackson序列化出来的结果是: 可是password不应该要展示,方法有多种: 方法1: 阅读全文
摘要:
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 阅读全文