摘要: 错误信息:Build path is incomplete. Cannot find class file for ...解决方法:下载commons-pool.jar包加入lib目录,配置.classpath文件,刷新项目即可。问题原因:导入commons-dbcp.jar和commons-pool.jar,dbcp依赖于commons-pool.jar参考:http://ninnd.iteye.com/blog/903463 阅读全文
posted @ 2013-09-24 15:32 easynote 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Spring 2.5引入了更多典型化注解(stereotype annotations):@Component、@Service和@Controller。@Component是所有受Spring管理组件的通用形式;而@Repository、@Service和@Controller则是@Component的细化,用来表示更具体的用例(例如,分别对应了持久化层、服务层和表现层)。也就是说,你能用@Component来注解你的组件类,但如果用@Repository、@Service或@Controller来注解它们,你的类也许能更好地被工具处理,或与切面进行关联。例如,这些典型化注解可以成为理想的切 阅读全文
posted @ 2013-09-24 15:32 easynote 阅读(114) 评论(0) 推荐(0) 编辑