05 2017 档案

hinernate ddl 设置
摘要:http://www.cnblogs.com/blogyuan/p/3739661.htmlvalidate 加载hibernate时,验证创建数据库表结构create 每次加载hibernate,重新创建... 阅读全文

posted @ 2017-05-26 22:38 silyvin 阅读(130) 评论(0) 推荐(0)

线程池造成服务器内存泄漏
摘要:部署新包的时候,发现tomcat起不来了,一看内存,服务器内存吃光了,进而发现java有多余进程然后发现 tomcat shutdown时,并没有释放java,造成内存奔溃了参考此帖:https://zhidao.baidu.com/question/4335... 阅读全文

posted @ 2017-05-24 17:09 silyvin 阅读(367) 评论(0) 推荐(0)

使用jdbcTemplate查询返回自定义对象集合
摘要:1、在UserInfo.java中添加一个Map转换为UserInfo的方法[java] view plain copypublic static UserInfo toObject(Map map) { UserInfo userInfo = new Us... 阅读全文

posted @ 2017-05-19 17:22 silyvin 阅读(4502) 评论(0) 推荐(0)

tomcat 启动慢 Creation of SecureRandom instance for session ID generation using [SHA1PRNG]took [xx] mil
摘要:http://blog.csdn.net/u011627980/article/details/54024974http://www.cnblogs.com/t-road/p/6861882.html# vim /usr/local/tomcat/bin/catali... 阅读全文

posted @ 2017-05-17 16:22 silyvin 阅读(207) 评论(0) 推荐(0)

nginx 及 tomcat 端口冲突问题
摘要:nginx 监听 80 转发 8088 tomcat原先通过80 及 8088 都能访问,区别是 80就走nginx转发,8088则直接走tomcat证据为:80端口,nginx强行过滤掉css和js后,页面出来无样式和响应,而走8088的话,直接走to... 阅读全文

posted @ 2017-05-17 15:09 silyvin 阅读(2291) 评论(0) 推荐(0)

使用@ControllerAdvice及@ExceptionHandler(value = Exception.class)全局异常处理
摘要:http://snowolf.iteye.com/blog/1636050Spring 注解学习手札(八)补遗——@ExceptionHandlerhttp://412887952-qq-com.iteye.com/blog/2291524全局异常捕捉【从零开始学Sp... 阅读全文

posted @ 2017-05-11 09:35 silyvin 阅读(1169) 评论(0) 推荐(0)

spring boot 事务的一些实践
摘要:起先:@Service@Transactionalclass xxxService indMsgDao.batchRead(userId); List list = indMsgDao.findByUserId(userId, pageab... 阅读全文

posted @ 2017-05-10 21:08 silyvin 阅读(143) 评论(0) 推荐(0)

spring boot jpa update 操作
摘要:有好多文章介绍了spring boot 博客已经很多了比如说: http://blog.csdn.net/linzhiqiang0316/article/details/52639265 http://blog.csdn.net/linzhiqiang0316/article/details/526... 阅读全文

posted @ 2017-05-10 20:56 silyvin 阅读(448) 评论(0) 推荐(0)

Integer vs int
摘要:http://www.cnblogs.com/liuling/archive/2013/05/05/intAndInteger.html 如果面试官问Integer与int的区别:估计大多数人只会说道两点,Ingeter是int的包装类,int的初值为0,Ingeter的初值为null。但是如果面试 阅读全文

posted @ 2017-05-09 14:45 silyvin 阅读(249) 评论(0) 推荐(0)

spring boot 架构问题 时间处理 (映射,时区问题)
摘要:spring.jackson.date-format=yyyy-MM-dd HH:mm:ssspring.jackson.time-zone=GMT+84.12日http://blog.csdn.net/buzaiguihun/article/details/5303... 阅读全文

posted @ 2017-05-09 13:45 silyvin 阅读(247) 评论(0) 推荐(0)

@JsonFormat和@DateTimeFormat 实践测试
摘要:JsonFormat :出参DateTimeFormate : 入参http://www.iteye.com/problems/53816@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")Date timeline@Dat... 阅读全文

posted @ 2017-05-09 13:22 silyvin 阅读(750) 评论(0) 推荐(0)

spring jpa CrudRepository save 新建数据没有返回id
摘要:在entity id上➕@GeneratedValue注解http://blog.csdn.net/u012493207/article/details/50846616 JPA的@GeneratedValue注解,在JPA中,@GeneratedValue注解存在... 阅读全文

posted @ 2017-05-09 11:13 silyvin 阅读(3672) 评论(0) 推荐(0)

多线程处理pdf附件转换
摘要:业务中要把pdf转为pngs,作以下service public PageResult findByUrl(String url) { if(!Pdf2Img.checkPdf(url)) return PageResult.... 阅读全文

posted @ 2017-05-07 22:47 silyvin 阅读(237) 评论(0) 推荐(0)