![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 73
tfx911
这个作者很懒,什么都没留下…
展开
-
Constructor argument with object matching
web.xml DrinkService.java package com.vf.constructor.objectmatch; public interface DrinkService { } Alcohol.java package com.vf.constructor.objectmatch; public class原创 2013-04-12 10:53:29 · 584 阅读 · 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 · 616 阅读 · 0 评论 -
@Qualifier example
beans.xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans ht原创 2013-04-18 13:57:20 · 1155 阅读 · 0 评论 -
initialization and destroy methods in bean
web.xml Contact.java package com.vf.constructor.objectmatch; import org.apache.log4j.Logger; import org.springframework.context.ApplicationContext; import org.springframework.context原创 2013-04-12 15:56:29 · 527 阅读 · 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 · 1005 阅读 · 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 · 502 阅读 · 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 · 568 阅读 · 0 评论 -
Setter-based dependency injection
web.xml WomenSerivce.java package com.vf.constructor.objectmatch; public class WomenSerivce { /** * @param args */ public WomenSerivce() { System.out.println("Women ser原创 2013-04-12 13:53:57 · 559 阅读 · 0 评论 -
Constructor argument type matching
web.xml ContactBean.java package com.vf.constructor.objectmatch; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXml原创 2013-04-12 11:07:50 · 613 阅读 · 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 · 543 阅读 · 0 评论 -
Constructor argument name
web.xml ContactBean.java package com.vf.constructor.objectmatch; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXml原创 2013-04-12 11:15:15 · 670 阅读 · 0 评论 -
web.xml AnnotationConfigWebApplicationContext
<!-- Configure ContextLoaderListener to use AnnotationConfigWebApplicationContext instead of the default XmlWebApplicationContext --> contextClass org.springframework.web.context.support.AnnotationC原创 2013-04-18 16:15:08 · 6493 阅读 · 0 评论