ITeye博客

76874151

hanfeng450 · 共 10 篇文章

有图有真相,搜索个spring出来这样的垃圾

我晕死, 这就是iteye的搜索,搜索个spring出来这些垃圾。。。

2012-11-05 14:40 · 评论(0)

Spring@Autowired注解与自动装配 到底好还是不好??

以前很少用Spring@Autowired注解与自动装配, 今天搜索了一下相关的内容,发现有提到这样的问题。 注解引发的问题: 1、缺乏明确的配置导致程序的依赖注入关系不明确。 2、不利于模块化的装配。 3、给维护带来麻烦,因为你要根据源代码找到依赖关系。 4、通用性不好。如果你哪天抛开了Spring,换了别的Ioc容器,那么你的注解要一个个的删除。 @Autowired注解与自动装配 跟xml的bean配置相对比,到底有哪些优劣? 有那位大虾可以解析一下

2012-03-19 16:19 · spring集成 · 评论(1)

使用compass出现的神奇问题

在已有的spring3.1.1集成mybatis的框架下, 加入compass2.2.0(lucene使用2.4.1)做系统全文检索, 索引的生成采用quartz调度生成, 在只写了个简单的索引生成后。 项目一启动即时产生内存溢出的问题。 有没有那位大虾遇到过这样的问题???

2012-03-12 11:55 · spring集成 · 评论(0)

异常求解

几个系统配置的项目应用,都是使用spring集成quartz,有其中一台服务器出现下列的错误,但其他的服务器没有发现同样的异常。有没有大虾也遇到过同样的问题。 SEVERE: The web application ~~ appears to have started a thread named but has failed to stop it. This is very likely to create a memory leak. SEVERE: The web application ~~ appears to have started a thread named but has…

2012-02-22 08:53 · spring集成 · 评论(0)

spring3.1 集成 quartz2.11 发生的错误

java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionList…

2012-02-03 13:52 · 评论(2)

使用Mybatis3.10+spring3.10集成发生的错误

在使用Mybatis3.10+spring3.10+mybatis-spring-1.0.0集成,使用spring test测试时发生如下错误: java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransactionFactory.newTransaction(Ljava/sql/Connection;)Lorg/apache/ibatis/transaction/Transaction; at org.apache.ibatis.session.defaults.DefaultSqlSes…

2012-02-02 16:41 · spring集成 · 评论(3)

请教jsp网站如何做二级域名

请教一下各位大虾,在jsp网站中怎么做二级域名。可能应用到那些技术或软件?

2008-08-18 16:49 · 评论(0)

一个古怪问题

本人近来在做一个项目,用的是struts1.2+spring2.0+hibernate3.2GA+dwr2.0, 数据池用的是c3p0 配置如下 c3p0.acquireIncrement=3 c3p0.acquireRetryAttempts=30 c3p0.idleConnectionTestPeriod=60 c3p0.minPoolSize=2 c3p0.maxPoolSize=100 c3p0.initialPoolSize=3 c3p0.maxIdleTime=60 c3p0.maxStatements=100 c3p0.numHelperThreads=10 c3p0.chec…

2008-05-21 18:57 · 评论(0)

用spring事务时hibernate无法抓取对象

spring 的配置文件 <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="find*" read-only="true" rollback-for="my.duds.exception.DudsException" /> <tx:method name="delete*" read-only="false" rollback-for="my.duds.exception.DudsException" /> <tx:method name="u…

2008-03-30 15:21 · 评论(1)

寂寞的十五个片段

(一) 我微笑着,冷漠地看着身边的每个人,那是一中歇斯底里的微笑,两种极端的交点。 我已忘了怎样去哭。 一个人坐在角落里,我面无表情地靠着冰冷的墙壁,汲取着手中热茶的唯一一点热量。 看着嬉笑的人群,依旧微笑,我的悲伤没人发觉。 (二) 血不断从手上的伤口中涌出来,我忘了痛,任新鲜的血液一滴滴地坠落在地板上。突然,我发现自己的血不是鲜红色的,它的颜色与寂寞相同。 我已忘了寂寞的颜色。 打开门,我闻到了冬天的气息,而我的心却无法冬眠,在寒风中,赤裸的心灵被撕裂,痛到麻木,失去了感觉。 (三) 我与寂寞同一国度,这或许是宿命。黑暗里我点起一支蜡烛,昏黄的火焰轻轻地跳动着,那是寂静的心跳。蜡烛然尽,…

2007-07-23 10:22 · 评论(5)