摘要: git init git clone /path/to/repository your local repository consists of three "trees" maintained by git. the first one is your Working Directory whic 阅读全文
posted @ 2018-09-04 21:40 parkdifferent 阅读(206) 评论(0) 推荐(0)
摘要: 接入阿里云短信服务,在springboot中写测试方法,执行到 总是报 网上找了很多文章,比较有用的是这篇博客 尝试看maven依赖树,排除一些jar 冲突,还是不行。 阿里云工单,推荐的版本是 3.3.1, 4.0.8 最后,尝试直接跑起应用,在Controller层写测试方法,结果就可以了。 阅读全文
posted @ 2018-09-04 11:04 parkdifferent 阅读(183) 评论(0) 推荐(0)
摘要: GC Tools There are multiple ways to enable the GC log: specifying either of the flags -verbose:gc or -XX:+PrintGC will create a simple GC log (the fla 阅读全文
posted @ 2018-08-28 20:19 parkdifferent 阅读(322) 评论(0) 推荐(0)
摘要: Sizing the Heap -XmsN -XmxN Sizing the Heap -XmsN -XmxN Summary The JVM will attempt to find a reasonable minimum and maximum heap size based on the m 阅读全文
posted @ 2018-08-24 22:54 parkdifferent 阅读(247) 评论(0) 推荐(0)
摘要: HTTP 1.0 vs 1.1 HTTP 1.0 vs 1.1 Proxy support and the Host field: HTTP 1.1 has a required Host header by spec. HTTP 1.0 does not officially require a 阅读全文
posted @ 2018-08-24 22:01 parkdifferent 阅读(407) 评论(0) 推荐(0)
摘要: GC算法 JVM提供了4中不同的算法执行GC GC算法 JVM提供了4中不同的算法执行GC The serial garbage collector 串行垃圾收集器是四个中最简单的。 这个是默认收集器 如果应用程序运行在客户端类机器(Windows上的32位JVM或单处理器机)。 串行收集器使用单个 阅读全文
posted @ 2018-08-23 21:16 parkdifferent 阅读(318) 评论(0) 推荐(0)
摘要: 垃圾收集器的操作 查找未使用的对象,释放内存,并压缩堆,避免内存碎片 一个java程序,有执行应用程序逻辑的线程和执行GC的线程组。当GC跟踪对象引用,或在内存中移动对象,它必须确保应用程序线程没有使用这些对象。 尤其如此在GC移动对象:在该操作期间对象的内存位置发生变化,因此没有应用程序线程可以访 阅读全文
posted @ 2018-08-22 21:31 parkdifferent 阅读(514) 评论(0) 推荐(0)
摘要: 今天在链接redis时,遇到问题: Could not get a resource from the pool。 redis的配置是: 最后,把 阅读全文
posted @ 2017-08-25 21:01 parkdifferent 阅读(3551) 评论(0) 推荐(0)
摘要: 今天在写接口的时候,用postman测试,返回数据与数据库一一对应,但是给前端返回的结果,除了主键id以外,其他都一样,如下 postman: 前端结果: postman的shoppingId是 898341460864172032,前端的shoppingId是898341460864172000。 阅读全文
posted @ 2017-08-21 16:59 parkdifferent 阅读(228) 评论(0) 推荐(0)
摘要: 最近在用mybatis写sql时候,遇到了一些问题。在以下sql中: 1. 除开动态sql,即使我用 查询结果也只有1条记录。当我把 count(*)删除时,开始有多条数据。这里count是统计函数,由于使用了它,数据只有1行。 2.我用 查询时候,发现数据也只有1条。我这里用到了分组查询。当我把 阅读全文
posted @ 2017-08-17 16:48 parkdifferent 阅读(493) 评论(0) 推荐(0)