请问spring是在什么时候对datasource的配置进行运行?我发现在tomcat启动的时候会出现下面这段代码:
[DATAMANAGER] WARN 2009-03-12 16:51:07,937 [http-8080-8] AbstractSecurityInterceptor.afterPropertiesSet(189) | Could not validate configuration attributes as the MethodDefinitionSource did not return a ConfigAttributeDefinition Iterator
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] RootClass.checkCompositeIdentifier(210) | composite-id class does not override equals(): com.miracle.dm.service.datainmiddle.model.ImDocreaderInfo
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] RootClass.checkCompositeIdentifier(215) | composite-id class does not override hashCode(): com.miracle.dm.service.datainmiddle.model.ImDocreaderInfo
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] Environment.verifyProperties(503) | Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@16eeaaa)
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60然后当我启动lucene建索引或查询时tomact控制台也会输出上面的代码,当输出上面代码时页面反应就很慢。当第二次检索时就不会。检索的方法里有用到getbean方法来获取业务逻辑管理类。
[DATAMANAGER] WARN 2009-03-12 16:51:07,937 [http-8080-8] AbstractSecurityInterceptor.afterPropertiesSet(189) | Could not validate configuration attributes as the MethodDefinitionSource did not return a ConfigAttributeDefinition Iterator
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] RootClass.checkCompositeIdentifier(210) | composite-id class does not override equals(): com.miracle.dm.service.datainmiddle.model.ImDocreaderInfo
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] RootClass.checkCompositeIdentifier(215) | composite-id class does not override hashCode(): com.miracle.dm.service.datainmiddle.model.ImDocreaderInfo
[DATAMANAGER] WARN 2009-03-12 16:51:08,203 [http-8080-8] Environment.verifyProperties(503) | Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@16eeaaa)
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60然后当我启动lucene建索引或查询时tomact控制台也会输出上面的代码,当输出上面代码时页面反应就很慢。当第二次检索时就不会。检索的方法里有用到getbean方法来获取业务逻辑管理类。
解决方案 »
- 跪求java高手:安装jdk会出现两个jre,哪个jre是jdk运行时候需要的。 jdk下有lib、bin。jdk的jre下有lib、bin有什么区别。
- struts异常求救!!!!
- 求一套s2sh购物车的源码 在线等。。。
- Lucene 的 highlight 显示
- hibernate+MySql中文乱码问题
- Java调用C++问题!!~~~
- 我在部署应用程序时,经常与其他应用程序的jndi命名冲突,请问你们是怎么命名jndi的,我都是以ejb/name来命名
- 各位搭建的J2EE平台都安装了哪些软件?
- 求助,一条语句出错!
- 关于计算机存储的问题
- 如何解决DOM4J Element.add 后产生的XML带有xmlns = ""
- 合并同一列的相同项
看完这个在告诉偶:
tomcat的context.xml中加入
<resource name="test" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="sa" password="120010"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test">
</resource>
web.xml中也加入了:
<resource-ref>
<res-ref-name>test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
spring配置文件中也加入了:
<bean id="dataSourcetarget"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/test"></property>
</bean>
<bean id="dataSource"
class="org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter">
<property name="targetDataSource">
<ref bean="dataSourcetarget" />
</property>
<property name="username" value="sa"></property>
<property name="password" value="sa"></property>
</bean>
为啥运行的时候DAO里面的HibernateTemplate老是空的,就是说数据源注入失败了,为什么啊!!!!小弟邮箱是[email protected]哪位大虾发个完整的能运行的啊,小弟来生做牛做马#@$@#$...
对美工界面设计我不太在行,所以只能提出我的一点感觉:
1、页面顶部图片占的位置相对整个页面而言比例不太好,要不头部高度调小,要不下面body中产品内容展现扩高。
2、对于导航有了顶部的,下面就不用,不然看起来感觉有点多余。
3、页面有一些链接,不知是google里的广告还是你自己特意加进去的内容,位置放在那边加上其背景色与整体页面背景的显明对比性,感觉不是太好。有把产品图片与该产品的相关信息下面的几个标签模块相隔离。
4、SPECIFICATION DIMENSION ACCESSORIES DOWNLOAD 高度有问题,根本无法看全其信息。
这几个位置可以放在图片的右边或紧靠它的下面,最好不要让两者隔离相分离。
我的一点点感觉而已。