Spring
djy180
这个作者很懒,什么都没留下…
展开
-
Spring3.0 定时器scheduled案例
1、没有用注解的实体类:原创 2014-06-13 15:44:30 · 728 阅读 · 0 评论 -
Spring中Bean的作用域
spring中scope作用域:这里的 scope 就是用来配置 spring bean 的作用域,它标识 bean 的作用域。默认是单例模式,即scope="singleton"。另外scope还有prototype、request、session、global session作用域。scope="prototype"多例在spring2.0之前bean只有2种作用域转载 2014-06-15 00:12:11 · 1504 阅读 · 0 评论 -
spring常用注解
@Repository、 @Service@Controller @Component@Scope("prototype") @PostConstruct @PreDestroy@Required Spring Annotation 的简单介绍1.使用 @Repository、 @Service、 @Controller 和 @Componen转载 2014-06-19 10:36:01 · 357 阅读 · 0 评论 -
spring问题集锦
Spring3自定义环境配置 Spring 3.1的功能,以后就不用为了区分Test, Dev, Production环境,搞几个只有细微区别的application.xml, application-test.xml及引用它们的web.xml了。首先,将applicationContext.xml中的namespace从3.0升级到3.1.xsd, 然后就可以在文转载 2016-05-10 16:32:28 · 319 阅读 · 0 评论