摘要:
在添加<tx:annotation-driven transaction-manager="txManager"/>程序之前,applicationContext.xml是读取正常的,其他代码也是正确运行的。 因为新接触spring,所以不知道spring的事务管理器也是需要引入包的,引入包以后就解 阅读全文
摘要:
阅读全文
摘要:
雇员薪资管理系统(crud) ①先搞定spring ②引入spring包 ③编写applicationContext.xml文件(或者beans.xml),我们把该文件放在src目录下 ④测试一下spring是否ok->目前spring可以工作 ⑤加入hibernate开发包 ⑥因为我们是ssh,所 阅读全文
摘要:
Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext.xml]; 该 阅读全文
摘要:
name是不能瞎写的,因为在ProxyFactoryBean中调用的方法名是: setInterceptorNames() 提一个问题 A a=new A(); a.setName("顺平"); 不是看A中的属性,而是看beans.xml中的属性。 比如方法名为setEE(),就去设置属性eE. ① 阅读全文
摘要:
是合法的。这就是接口的多态。 阅读全文
摘要:
阅读全文