看了 hibernate的 fetch属性好久没看懂 大家项目中一般是配置成select 还是subselect还是join啊
10分
一般fetch 用默认的select吧
各位大牛 大家项目里怎么配置的呢
10分
没有固定吧 ,都是怎么快怎么写。
10分
绝大多数都是默认select。主要是针对关……继续阅读 »
11年前 (2015-04-04) 1099浏览 0评论
0个赞
这个有成熟的开源产品吗 有做过的吗 求助
License 生成方式:利用版本号,有效期等一些与此工程有关的信息,生成一段数字签名。
然后再启动服务时,在filter过滤器中校验此段数字签名是否是某有效期内的license。
RSA就可以,生成一对密钥,私钥用来生成签名,公钥用来校验签名。
您好,我网上找了相关的生成公钥私钥……继续阅读 »
11年前 (2015-04-04) 4681浏览 0评论
0个赞
情况是这样的:
我安装了Myeclipse 10.5 在不集成spket-1.6.23的情况下,我用Myeclipse创建SSH项目,期间没有任何问题,很顺利就可以了。
但我集成spket-1.6.23后,我先添加了spring(跟不集成spket-1.6.23操作步骤一样),然后applicationContext.xm……继续阅读 »
11年前 (2015-04-04) 1132浏览 0评论
0个赞
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……继续阅读 »
11年前 (2015-04-04) 2065浏览 0评论
0个赞
springaop
beans.xml配置:
<beans xmlns=”http://www.springframework.org/schema/beans”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
……继续阅读 »
11年前 (2015-04-04) 2600浏览 0评论
0个赞
public class doBeforeAdvice implements MethodInterceptor{
@Override
public Object invoke(MethodInvocation arg0) throws Throwable {
// TODO 自动生成的方法存根
System.out.print……继续阅读 »
11年前 (2015-04-04) 1599浏览 0评论
0个赞
jsonajaxstrutsstruts.xml
从来没用过struts配置文件中返回类型是json的
<action name="listProduct" class="createGiftQueryAction" method="listProduct">
<result type="json">
<par……继续阅读 »
11年前 (2015-04-04) 1373浏览 0评论
0个赞
XStream的bug,比如在定义别名中的下划线“_”解析为xml后。xml的节点<per_name>对应person类中的per_name字段不匹配
报错为:
Exception in thread “main” com.thoughtworks.xstream.alias.CannotResolveCla……继续阅读 »
11年前 (2015-04-04) 2079浏览 0评论
0个赞
ExecutorService pool = Executors.newFixedThreadPool(threadCount);
pool.execute(r);
这种方式运行的线程,怎么给每个线程制定一个Timeout?
超时了直接结束线程。
用submit方法,返回一个Future,然后调用Future中的V get(long……继续阅读 »
11年前 (2015-04-04) 1729浏览 0评论
0个赞