hibernate update Caused by: java.lang.NullPointerException
Caused by: java.lang.NullPointerException at org.hibernate.type.LongType.next(LongType.java:54) at org.hibernate.engine.Versioning.increment(Versioning.java:25) at org.hiber……
spring aop配置Ignored XML validation warning
springaop beans.xml配置: <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” ……
关于spring的MethodInterceptor
public class doBeforeAdvice implements MethodInterceptor{ @Override public Object invoke(MethodInvocation arg0) throws Throwable { // TODO 自动生成的方法存根 System.out.print……
在struts.xml中使用result type="json" 如何在ajax中获得值
jsonajaxstrutsstruts.xml 从来没用过struts配置文件中返回类型是json的 <action name="listProduct" class="createGiftQueryAction" method="listProduct"> <result type="json"> <par……
XStream的bug,下划线“_”解析为xml后。字段不匹配
XStream的bug,比如在定义别名中的下划线“_”解析为xml后。xml的节点<per_name>对应person类中的per_name字段不匹配 报错为: Exception in thread “main” com.thoughtworks.xstream.alias.CannotResolveCla……
java线程池里的线程,怎么设置Timeout
ExecutorService pool = Executors.newFixedThreadPool(threadCount); pool.execute(r); 这种方式运行的线程,怎么给每个线程制定一个Timeout? 超时了直接结束线程。 用submit方法,返回一个Future,然后调用Future中的V get(long……
在Java/J2EE项目中用多线程java.util.concurrent
在Java/J2EE(比如Struts2/Spring/Hibernate)实际项目中有用过多线程吗?比如java.util.concurrent包? 都实现什么功能?用了那些API? 10分 用的比较多的是线程池,线程参数不要共享,由多线程调度程序分配数据。 引用 1 楼 oh_Maxy 的回复: 用的比较多的是线程池……