摘要: 1 package com.wisely.heighlight_spring4.ch2.el; 2 3 import java.io.IOException; 4 5 import org.apache.commons.io.IOUtils; 6 import org.springframework.beans.factory.annotation.Autowired; 7 i... 阅读全文
posted @ 2018-03-21 17:37 JohnEricCheng 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Bean的scope: 1、Singleton(单例): 一个Spring容器只有以这个Bean实例。 2、prototype(多例): 每次调用新建一个Bean的实例。 3、request:一个http request请求一个Bean实例。 4、Session:一个http session请求一个 阅读全文
posted @ 2018-03-21 16:52 JohnEricCheng 阅读(237) 评论(0) 推荐(0) 编辑