![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
chenjinbo1982
这个作者很懒,什么都没留下…
展开
-
spring IOC/DI配置
1.属性注入public class TestAction { TestService testService; public void test(){ testService.test(); } /** * 使用属性注入 */ public void setTestService(TestService testService) {...原创 2012-12-18 09:38:50 · 84 阅读 · 0 评论 -
spring 自动扫描过滤使用(用于一个接口多实现)
两个实现类,放在了不同包下 package com.chen.service.impl;import org.springframework.stereotype.Service;import com.chen.service.TestService;@Servicepublic class TestServiceImpl implements TestServic...原创 2012-12-18 10:42:38 · 245 阅读 · 0 评论 -
Spring常用注解
使用注解来构造IoC容器用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册<context:component-scan base-package=”pagkage1[,pagkage2,…,pagkageN]”/>。如:在base-package指明一个包1 <context:component-scan base...原创 2016-07-22 15:00:28 · 68 阅读 · 0 评论 -
SpringMVC学习笔记
原文地址:https://www.cnblogs.com/sunniest/p/4555801.htmlSpringMVC学习笔记----一、SpringMVC基础入门,创建一个HelloWorld程序1.首先,导入SpringMVC需要的jar包。2.添加Web.xml配置文件中关于SpringMVC的配置 <!--configure the s...原创 2018-08-03 14:17:46 · 79 阅读 · 0 评论 -
深入理解Spring MVC 思想
原文地址:http://elf8848.iteye.com/blog/875830原创 2018-08-06 10:29:10 · 94 阅读 · 0 评论