![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 389 阅读 · 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 · 93 阅读 · 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 · 88 阅读 · 0 评论 -
2020-04-02 spring学习------CGLIB动态代理
一、CGLibProxy实现MethodInterceptorpackage 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 · 357 阅读 · 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 · 100 阅读 · 0 评论 -
2020-04-02 spring学习------JDK动态代理
一、JdkProxy实现InvocationHandlerpackage 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 · 86 阅读 · 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 · 104 阅读 · 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 · 78 阅读 · 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 · 83 阅读 · 0 评论