随笔分类 - spring-注解
摘要:spring-注解 ext package com.zwj.ext; public class Blue { public Blue(){ System.out.println("blue...constructor"); } public void init(){ System.out.print
阅读全文
摘要:spring-注解 transaction package com.zwj.config; import java.beans.PropertyVetoException; import javax.sql.DataSource; import org.springframework.aop.asp
阅读全文
摘要:spring-注解 aop package com.zwj.aop; import java.util.Arrays; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.After; import org.as
阅读全文
摘要:spring-注解 autowired package com.zwj.bean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Compone
阅读全文
摘要:spring- 注解 values package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { //使用@Value赋值; //1、基本数值 //2、可以
阅读全文
摘要:spring--注解 IOC(3) package com.zwj.bean; public class Blue { public Blue(){ System.out.println("blue...constructor"); } public void init(){ System.out.
阅读全文
摘要:spring-注解 IOC(2) package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { private String name; private I
阅读全文
摘要:(2) spring-注解 LifeCylce package com.zwj.bean; import org.springframework.stereotype.Component; @Component public class Car { public Car(){ System.out.
阅读全文
摘要:spring-注解 (1) -- include/exclude package com.zwj.bean; import org.springframework.stereotype.Component; @Component public class Car { public Car(){ Sy
阅读全文