java
sunzhemin
这个作者很懒,什么都没留下…
展开
-
关于 ConcurrentHashMap 的同步问题
package com.seeyon.v3x.organization.domain;import java.util.Collection;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;import java.util.concurrent.CopyOnWriteArraySet;publ原创 2012-12-31 20:57:47 · 1009 阅读 · 1 评论 -
select new com.clsss 报 could not instantiate class from tuple
今天原来跑的好好的代码,在sqlserver的数据库中发现有错误 :org.springframework.orm.hibernate3.HibernateQueryException: could not instantiate class [xxx] from tuple; nested exception is org.hibernate.QueryException: could原创 2013-07-01 15:42:45 · 5736 阅读 · 0 评论 -
布尔代数和权限管理
一、布尔代数 布尔代数相信大家都接触过,根据维基百科的定义: The basic operations of Boolean algebra are the following ones:And (conjunction), denotedx∧y (sometimes x AND y or Kxy), satisfiesx∧y = 1 if x = y原创 2014-01-12 00:16:11 · 1474 阅读 · 1 评论 -
BeanUtils.copyProperties做copy的时候,Long 字段会设置为null
public class MySim { private Long id ;public Long getId() { return id;}public void setId(Long id) { this.id = id;} } 通过BeanUtils.copyProperties做copy的时候,Long ,Integer等字段的默认值设置为null原创 2015-01-29 17:40:56 · 3115 阅读 · 0 评论 -
记录下mac查看java 安装路径的问题
MacBook-Pro:~ user$ /usr/libexec/java_home /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home备忘原创 2015-07-16 15:28:36 · 10526 阅读 · 0 评论 -
transient 字段反序列化后是字段类型默认值
transient 字段一些不必要同步的字段,在集群间不传递,因此设置为transienttransient字段就算赋值了,反序列化后,是默认值一些不必要同步的字段,在集群间不传递,因此设置为transient因为一些字段没有在要求集群间必须传递,只在各自主机上保持唯一即可.对这样的需求,当然是使用标记transient了.序列化对象例子class SpecialSerial implemen原创 2015-08-11 13:55:49 · 1533 阅读 · 0 评论 -
java.lang.IllegalArgumentException: argument type mismatch websocket 调用 json 报错
Exceptionjavax.json.JsonException: Provider org.glassfish.json.JsonProviderImpl not found七月 23, 2015 2:02:11 下午 org.apache.tomcat.websocket.pojo.PojoEndpointBase onError严重: No error handling confi转载 2015-07-23 14:10:22 · 3219 阅读 · 0 评论 -
springboot 构建微服务设置远程调试
springboot构建一些基础服务因为业务需求,最近构建了些基础服务,比如短信服务验证码,激活邮件,天气预报,内部消息队列等等。springboot很方便,还可以随时监控服务健康状态但是一直没设置远程调试。因为我是用maven构建的工程。所以自然想到用maven的插件实现。参见: 远程调试maven设置又由于最终打成的是个jar文件到服务器运行,为方便起见,还是使用命令行运行 java原创 2016-01-08 11:21:21 · 11580 阅读 · 0 评论