摘要: spring-注解 autowired package com.zwj.bean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Compone 阅读全文
posted @ 2018-10-27 15:21 周无极 阅读(200) 评论(0) 推荐(0) 编辑
摘要: spring- 注解 values package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { //使用@Value赋值; //1、基本数值 //2、可以 阅读全文
posted @ 2018-10-27 13:55 周无极 阅读(215) 评论(0) 推荐(0) 编辑
摘要: spring--注解 IOC(3) package com.zwj.bean; public class Blue { public Blue(){ System.out.println("blue...constructor"); } public void init(){ System.out. 阅读全文
posted @ 2018-10-27 11:54 周无极 阅读(174) 评论(0) 推荐(0) 编辑
摘要: spring-注解 IOC(2) package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { private String name; private I 阅读全文
posted @ 2018-10-27 10:56 周无极 阅读(158) 评论(0) 推荐(0) 编辑
摘要: (2) spring-注解 LifeCylce package com.zwj.bean; import org.springframework.stereotype.Component; @Component public class Car { public Car(){ System.out. 阅读全文
posted @ 2018-10-27 10:27 周无极 阅读(218) 评论(0) 推荐(0) 编辑