
Spring
hello_yajing
正在努力的程序猿一枚!
展开
-
2020-01-09 @Autowired注解抛异常: java.lang.NullPointerException
出现这个问题的原因有以下几点: 一:配置文件 1.applicationContext.xml 要开启注解支持!扫描器路径不要写错咯! ```java <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:cont...原创 2020-04-10 17:54:17 · 452 阅读 · 1 评论 -
2020-04-02 spring学习----依赖注入
一、配置文件 1.application.xml <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/conte...原创 2020-04-10 18:31:26 · 125 阅读 · 0 评论 -
2020-04-02 spring学习------注解方式装配Bean
一、配置文件 <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:x...原创 2020-04-10 18:34:33 · 135 阅读 · 0 评论 -
2020-04-02 spring学习------CGLIB动态代理
一、CGLibProxy实现MethodInterceptor package test.spring.proxy; import org.springframework.cglib.proxy.Enhancer; import org.springframework.cglib.proxy.MethodInterceptor; import org.springframework.cgli...原创 2020-04-10 18:37:05 · 421 阅读 · 0 评论 -
2020-04-03 spring------自动创建代理
一、配置文件 <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:x...原创 2020-04-10 18:41:10 · 149 阅读 · 0 评论 -
2020-04-02 spring学习------JDK动态代理
一、JdkProxy实现InvocationHandler package test.spring.proxy; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; public class JdkProxy<T>...原创 2020-04-13 09:06:56 · 138 阅读 · 0 评论 -
2020-04-02 spring学习------spring AOP
一、配置文件 <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:...原创 2020-04-13 09:07:40 · 156 阅读 · 0 评论 -
2020-04-02 spring学习------spring AOP续
一、配置文件 <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:x...原创 2020-04-13 09:08:05 · 127 阅读 · 0 评论 -
2020-04-02 Spring学习------实例化Bean的三种方法
一.配置文件 1.applicationContext.xml <?xml version="1.0" encoding="utf-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schem...原创 2020-04-10 18:27:50 · 109 阅读 · 0 评论