Spring
MaChuXiang
故不积跬步,无以至千里;不积小流,无以成江海。骐骥一跃,不能十步;驽马十驾,功在不舍。锲而舍之,朽木不折;锲而不舍,金石可镂。
展开
-
Spring之初始化容器对象和实例化的方式
一、通过resource容器加载import org.springframework.core.io.ClassPathResource;import org.springframework.core.io.FileSystemResource;import org.springframework.core.io.Resource;import org.springframework.cor...翻译 2018-05-12 16:12:11 · 798 阅读 · 0 评论 -
Spring之依赖注入配置和注解
一、基本属性注入//实体的bean类public class User { private Long id; private String name = "无名氏"; private boolean gender; // 性别 private Set<String> addressSet; // Set集合 private Set numberSet; // Set集合...翻译 2018-05-13 16:31:44 · 242 阅读 · 0 评论