一.创建项目项目名称:spring092901二.添加jar包commons-logging.jarjunit-4.4.jarlog4j.jarspring-beans-3.2.0.RELEASE.jarspring-context-3.2.0.RELEASE.jarspring-core-3.2.0.RELEASE.jarspring-expression-3.2.0.RELEASE.jar三.添加配置文件1.在项目中创建conf目录/conf2.在..
分类:
编程语言 时间:
2014-09-29 20:47:21
阅读次数:
203
一.创建项目项目名称:spring092901二.添加jar包commons-logging.jarjunit-4.4.jarlog4j.jarspring-beans-3.2.0.RELEASE.jarspring-context-3.2.0.RELEASE.jarspring-core-3.2.0.RELEASE.jarspring-expression-3.2.0.RELEASE.jar三.添加配置文件1.在项目中创建conf目录/conf2.在..
分类:
编程语言 时间:
2014-09-29 20:47:11
阅读次数:
151
原因: Sever1上是单网卡,Sever2上是多网卡。而服务A未指定注册RMI的IP。导致其它服务不能找到相应的RMI服务。 解决办法: <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"...
分类:
其他好文 时间:
2014-09-29 18:20:01
阅读次数:
165
直接lucas降到10w以内搞组合数
#include
#include
typedef __int64 LL;
LL f[110010];
LL pow(LL a, LL b, LL c)
{
LL ans = 1;
while(b)
{
if(b&1)
ans = (ans*a) % c;
b >>= 1;
a = (a*a) % c;
}
return an...
分类:
其他好文 时间:
2014-09-28 21:49:55
阅读次数:
216
访问JavaBean属性的两种方式1)直接调用bean的setXXX或getXXX方法;2)通过内省技术访问(java.beans包提供了内省的API),内省技术访问也提供了两种方式: a)通过PropertyDescriptor类操作Bean的属性; b)通过Introspector类获得Be.....
分类:
编程语言 时间:
2014-09-27 16:29:39
阅读次数:
227
/*求在n棵树上摘不超过m颗豆子的方案,结果对p取模。
求C(n+m,m)%p。
因为n,m很大,这里可以直接套用Lucas定理的模板即可。
Lucas(n,m,p)=C(n%p,m%p,p)*Lucas(n/p,m/p,p); ///这里可以采用对n分段递归求解,
Lucas(x,0,p)=1;
将n,m分解变小之后问题又转换成了求C(a/b)%p。
而C(a,b) =a! / ( b! *...
分类:
其他好文 时间:
2014-09-26 22:58:09
阅读次数:
176
org.springframework.beans.factory.NoSuchBeanDefinitionException:Nobeannamed‘sessionFactory‘isdefined这个问题发生的很突然,网上各种找都是说没有配置啊,没有加载啊,没有~~~~~其实我这个原因是myeclipse有缓存了,具体解决方法:点解工具栏Project->Clean,默认点选Cleana..
分类:
系统相关 时间:
2014-09-25 12:50:29
阅读次数:
201
所 有 使 用 XML 文 件 进 行 配 置 信 息 加 载 的 Spring IoC 容 器 , 包 括 BeanFactory 和ApplicationContext的所有XML相应实现,都使用统一的XML格式。在Spring 2.0版本之前,这种格式由Spring提供的DTD规定,也就是说,...
分类:
编程语言 时间:
2014-09-24 22:04:57
阅读次数:
297
1.加入jar包com.springsource.org.aopalliance-1.0.0.jarcom.springsource.org.aspectj.weaver-1.6.8.RELEASE.jarcommons-logging-1.1.3.jarspring-aop-4.1.0.RELEASE.jarspring-aspects-4.1.0.RELEASE.jarspring-beans-4.1.0.RELEASE.jarspring-context-4.1.0.RELEASE.jarspri..
分类:
编程语言 时间:
2014-09-24 17:07:48
阅读次数:
273
整合了一下springmvc +hibernate4.希望对你们有点帮助,希望能多技术交流,需要源码请留下邮箱地址
目录结构图
注意是我的项目是在utf-8,jdk7下
相关配置
pom.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframe...
分类:
编程语言 时间:
2014-09-23 21:23:35
阅读次数:
366