<bean id="comLog4ceSessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="comLog4ceDataSource" />
<property name="annotatedClasses">
<list>
<value>com.ce.component.log4ce.core.BizLogInfo</value>
</list>
</property>
<property name="annotatedPackages">
<list>
<value>com.ce.component.log4ce.core</value>
</list>
</property>
<property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration">
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${log4cehibernate.dialect}</prop>
<prop key="hibernate.show_sql">${log4cehibernate.show_sql}</prop>
<prop key="hibernate.connection.release_mode">${log4cehibernate.connection.release_mode}</prop>
<prop key="hibernate.hbm2ddl.auto">${log4cehibernate.hbm2ddl.auto}</prop>
<prop key="hibernate.jdbc.fetch_size">${log4cehibernate.jdbc.fetch_size}</prop>
<prop key="hibernate.jdbc.batch_size">${log4cehibernate.jdbc.batch_size}</prop>
<prop key="hibernate.connection.charSet">${log4cehibernate.connection.charSet}</prop>
</props>
</property>
</bean>
中的
<property name="annotatedPackages">
<list>
<value>com.ce.component.log4ce.core</value>
</list>
</property>表示com.ce.component.log4ce.core包以下的所有类都要有Annotation,如果有的类没有就Tomcat启动时候暴Warn:
2008-09-01 15:06:09,807 WARN [org.hibernate.cfg.AnnotationBinder] - <Package not found or wo package-info.java: com.ce.component.log4ce.core>
分享到:
相关推荐
NULL 博文链接:https://binshanf.iteye.com/blog/264937
application.xml配置 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx=...
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <value>com.org.entity</value> ${hibernate.dialect} ...
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <value>com.org.core.entity</value> ${hibernate....
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <ref bean="dataSource"></ref> <prop key="hibernate.dialect">org.hibernate.dialect....
18. class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> 19. <property name="dataSource" ref="dataSource" /> 20. <property name="hibernateProperties"> 21. <props> 22...
AnnotationSessionFactoryBean AnnotationTransactionAttributeSource AnnotationUtils AntPathMatcher AopConfigException AopContext AopInvocationException AopNamespaceHandler AopNamespaceUtils ...