2015年10月30日
摘要: Spring-47 Adding an Update Method to the DAOpublic boolean update(Offer offer){BeanPropertySqlParameterSource params = new BeanPropertySqlParameterSou... 阅读全文
posted @ 2015-10-30 00:37 jobfinder 阅读(137) 评论(0) 推荐(0) 编辑
  2015年10月27日
摘要: Spring-24 Adding Support for Annotation-Based WiringNamespace-->check 'context'-->In 'context' Insert element Spring-25 Th... 阅读全文
posted @ 2015-10-27 14:14 jobfinder 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Spring-19 Auto-Wiringby type在Xml文件中定义bean之间的关系时,有3种方法:1. inner bean2. 在bean 的property中定义另外一个bean3. Spring Autowiring(有很多种类型, 这里 by type) ... 阅读全文
posted @ 2015-10-27 00:03 jobfinder 阅读(150) 评论(0) 推荐(0) 编辑
  2015年10月23日
摘要: Spring-12 Factory Beans and Methodsstatic method in Class personnon-static method in personFactorySpring-13 The P Namespace注意Constructor 中的Arg 和建立的Bea... 阅读全文
posted @ 2015-10-23 03:41 jobfinder 阅读(139) 评论(0) 推荐(0) 编辑
  2015年10月17日
摘要: Spring 10 - Bean scopePrototype;Request ;Session;Singleton.Source Code:Person person1 = (Person) context.getBean("person");Person person2 = (Person)... 阅读全文
posted @ 2015-10-17 00:38 jobfinder 阅读(125) 评论(0) 推荐(0) 编辑
  2015年10月16日
摘要: Spring 8 - Setting Beans Properties1. Add new parameter 'sexId' in Java class "Person" and also add 'setsexId()' method in it2. Insert 'property' in b... 阅读全文
posted @ 2015-10-16 23:23 jobfinder 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Spring 5 - "HelloWorld"1.Bulid the maven project-->check the Create a simple project Set Group Id: com.caveofprogramming.spring.test Artifact Id: s... 阅读全文
posted @ 2015-10-16 02:40 jobfinder 阅读(145) 评论(0) 推荐(0) 编辑