Spring
文章平均质量分 73
tfx911
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Constructor argument with object matching
web.xml DrinkService.javapackage com.vf.constructor.objectmatch;public interface DrinkService {}Alcohol.javapackage com.vf.constructor.objectmatch;public class原创 2013-04-12 10:53:29 · 679 阅读 · 0 评论 -
@PostConstruct and @PreDestroy example
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaLocation="http:原创 2013-04-18 14:53:44 · 736 阅读 · 0 评论 -
@Qualifier example
beans.xmlxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaLocation="http://www.springframework.org/schema/beansht原创 2013-04-18 13:57:20 · 1227 阅读 · 0 评论 -
initialization and destroy methods in bean
web.xml Contact.javapackage com.vf.constructor.objectmatch;import org.apache.log4j.Logger;import org.springframework.context.ApplicationContext;import org.springframework.context原创 2013-04-12 15:56:29 · 622 阅读 · 0 评论 -
@Resource example
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaLocation="http:原创 2013-04-18 14:21:14 · 1141 阅读 · 0 评论 -
@Autowired example
beans.xml<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaLoc原创 2013-04-18 13:24:27 · 567 阅读 · 0 评论 -
@Required example
beans.xml<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xsi:schemaL原创 2013-04-18 13:07:55 · 644 阅读 · 0 评论 -
Setter-based dependency injection
web.xml WomenSerivce.javapackage com.vf.constructor.objectmatch;public class WomenSerivce { /** * @param args */ public WomenSerivce() { System.out.println("Women ser原创 2013-04-12 13:53:57 · 606 阅读 · 0 评论 -
Constructor argument type matching
web.xml ContactBean.javapackage com.vf.constructor.objectmatch;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXml原创 2013-04-12 11:07:50 · 735 阅读 · 0 评论 -
Spring-Instantiation bean with a static factory method
web.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/bea原创 2013-04-12 10:14:29 · 601 阅读 · 0 评论 -
Constructor argument name
web.xml ContactBean.javapackage com.vf.constructor.objectmatch;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXml原创 2013-04-12 11:15:15 · 787 阅读 · 0 评论 -
web.xml AnnotationConfigWebApplicationContext
<!-- Configure ContextLoaderListener to use AnnotationConfigWebApplicationContextinstead of the default XmlWebApplicationContext -->contextClassorg.springframework.web.context.support.AnnotationC原创 2013-04-18 16:15:08 · 6565 阅读 · 0 评论
分享