摘要:
spring-注解 autowired package com.zwj.bean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Compone 阅读全文
posted @ 2018-10-27 15:21
周无极
阅读(211)
评论(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
周无极
阅读(224)
评论(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
周无极
阅读(180)
评论(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
周无极
阅读(168)
评论(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
周无极
阅读(223)
评论(0)
推荐(0)

浙公网安备 33010602011771号