随笔分类 - Java
摘要:spring boot 默认提供了StringRedisTemplate 工具类。key和value全部以String的方式进行序列化。 ObjectMapper是jackJson的一个工具类。 <dependency> <groupId>com.fasterxml.jackson.core</gr
阅读全文
摘要:https://www.cnblogs.com/fuzongle/p/12830572.html
阅读全文
摘要:scala 版本 1 def getSigned(createTime:String): String ={ 2 val secrectStr = appId+createTime+appKey 3 val digest: MessageDigest = MessageDigest.getInsta
阅读全文
摘要:var token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhZG1pbiIsImlzcyI6IjEifQ.Vrr3ZSo3KVcjPFoMABbN6ir_ApGD47HsPDdoeo5gG84";var xhr=new XMLHttpReq
阅读全文
摘要:31、generateSerialVersionUID 32、UUID generator 33、DTO generator 34、 SequenceDiagram ,代码调用链路插件 文章:https://mp.weixin.qq.com/s/5rxIQk2nWVlvaK7Swf9Srw MP+M
阅读全文
摘要:fatal: unable to access 'https://github.com/lidreamwind/mapreduce.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 git config --global http.ssl
阅读全文
摘要:<build> <plugins> <!-- 跳过测试代码--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <
阅读全文
摘要:使用Stack对大JSON进行识别。基本功能完成,需要考虑特殊情况。 public HashMap<String,JSONObject> analyseFileToPutJSONInMysql(String filepath){ HashMap<String,JSONObject> rs = new
阅读全文
摘要:代码参考git。git地址:https://github.com/lidreamwind/Java-Jpa-Data one to many是一张表的一条记录对应另一张表的多条记录。 Many to one 是一张表的多条记录对应另一张表的一条记录。 两张表之间以外键关系关联在一起。 文档参考:ht
阅读全文
摘要:近期由于工作需要,使用Spring boot来进行项目开发,现总结如下。 Spring boot简介,https://blog.csdn.net/qq_32403063/article/details/87948084 Spring boot项目创建,https://www.cnblogs.com/
阅读全文
摘要:回调函数 有两个类,A,B,在类A中调用B,在B中调用A的方法完成A的工作,那么这个在B类中调用的A的函数就称为回调函数。 异步回掉函数:类A将自己的工作交给类B后,继续执行剩下的程序,而B继续完成A交给的工作。 使用方法: 1、定义一个接口 2、A可以直接继承此接口,也可以定义一个内部类继承此接口
阅读全文