packagestoscan专题

SSH配置:Hibernate的packagesToScan路径解析分析--gxy

转载: http://saberhaha.iteye.com/blog/772083 <property name="packagesToScan" value="com.xxx.entity" />, 会解析成”classpath*:com/xxx/entity**/*.class”,这个路径可以找出com/xxx/entity根目录下的类文件 <property name="package

[Tips] Spring 2.5.6新特性之packagesToScan

如果你使用早前版本的Spring,又恰好采用了Annotation注解方式(而非传统XML方式)配置Hibernate对象关系映射,那么在通过org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean配置sessionFactory时,你一定对annotatedClasses、annotatedPackag