![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring学习心得
javajsd1206
这个作者很懒,什么都没留下…
展开
-
spring加载配置文件的几种方法
[b]spring 加载配置文件的几种方法[/b] 在学习spring的过程中,加载文件报错,告诉我文件不存在: 代码: package helloworld; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.co...原创 2014-08-09 15:26:54 · 820 阅读 · 0 评论 -
spring的几种注解的用法
1、@controller 控制器(注入服务) 2、@service 服务(注入dao) 3、@repository dao(实现dao访问) 4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的) @Component,@Service,@Controller,@Repository注解的类,并把这些类纳入进spring容器中管理。 下面写这个...原创 2014-08-11 17:24:14 · 214 阅读 · 0 评论 -
关于spring配置文件的一些注解
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> ..2014-08-20 11:35:06 · 96 阅读 · 0 评论