rescueA

2018年10月31日

HttpInvoker客户端动态调用Demo

摘要: private static <T> T getHttpInvokerService(String serverUrl, Class<T> serviceInterface) { HttpInvokerProxyFactoryBean httpInvoker = new HttpInvokerPro 阅读全文

posted @ 2018-10-31 20:37 rescueA 阅读(630) 评论(0) 推荐(0) 编辑

2018年1月5日

org.hibernate.AssertionFailure: null id in xxx entry (don't flush the Session after an exception occurs)

摘要: 网上找了很久,发现造成原因有很多种,后来终于发现了端倪;看提示是发生了异常,查看业务代码,发现有这个逻辑:先插入记录,如果有唯一键约束异常(并发造成),catch时查询已存在的记录,查询的时候就报了此错误。 原因:异常后,再次查询的时候触发了autoFlush,先前保存失败的记录会再次保存,导致抛出 阅读全文

posted @ 2018-01-05 16:43 rescueA 阅读(2277) 评论(0) 推荐(0) 编辑

2015年11月29日

docker之文件夹共享

摘要: 本文采用的是CoreOS操作系统1、共享宿主机的目录给容器docker run -d --name=test -v /opt/test:/usr/databases docker-testtest是容器的名字,需唯一;-v表示创建一个数据卷并挂载到容器里,示例表示把宿主机的/opt/test目录挂... 阅读全文

posted @ 2015-11-29 21:03 rescueA 阅读(8692) 评论(0) 推荐(0) 编辑

2015年11月17日

linux一些常用命令

摘要: linux常用命令 阅读全文

posted @ 2015-11-17 16:59 rescueA 阅读(569) 评论(0) 推荐(0) 编辑