上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 在web容器启动时为提供给第三方组件机会做一些初始化的工作,例如注册servlet或者filtes等,servlet规范中通过ServletContainerInitializer实现此功能。 每个框架要使用ServletContainerInitializer就必须在对应的jar包的META-IN 阅读全文
posted @ 2019-11-25 15:11 MartinEDM 阅读(440) 评论(0) 推荐(0)
摘要: 转自: https://blog.csdn.net/qq_36951116/article/details/79172485 切入点指示符用来指示切入点表达式目的,,在Spring AOP中目前只有执行方法这一个连接点,Spring AOP支持的AspectJ切入点指示符如下: execution: 阅读全文
posted @ 2019-10-28 15:31 MartinEDM 阅读(570) 评论(0) 推荐(0)
摘要: 切面(Aspect):切面用于组织多个Advice,Advice放在切面中定义 连接点(Joinpoint):程序执行过程中明确的店,如方法的调用,或者异常的抛出。在SpringAOP中,连接点总是方法的调用 增强处理(Advice):AOP框架在特定的切入点执行的增强处理。处理有“around”、 阅读全文
posted @ 2019-10-28 15:28 MartinEDM 阅读(119) 评论(0) 推荐(0)
摘要: @autowired 可以自动帮你把Bean里面引用的对象的setter/getter方法省略,自动帮你set/get。 启动spring IoC时,容器自动装载了一个AutowiredAnnotationBeanPostProcessor后置处理器,当容器扫描到@Autowied、@Resourc 阅读全文
posted @ 2019-10-28 11:16 MartinEDM 阅读(1124) 评论(0) 推荐(1)
摘要: 1.注入 基本字符 2.el表达式 3.读取配置文件 配置文件 配置类 Bean类 阅读全文
posted @ 2019-10-24 12:00 MartinEDM 阅读(452) 评论(0) 推荐(0)
摘要: 转自: https://www.jianshu.com/p/d26e8ec9c077? BeanPostProcessor也称为Bean后置处理器,它是Spring中定义的接口,在Spring容器的创建过程中(具体为Bean初始化前后)会回调BeanPostProcessor中定义的两个方法。Bea 阅读全文
posted @ 2019-10-16 11:50 MartinEDM 阅读(1459) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/aspirant/p/9082858.html BeanFacotry是spring中比较原始的Factory。如XMLBeanFactory就是一种典型的BeanFactory。原始的BeanFactory无法支持spring的许多插件,如AO 阅读全文
posted @ 2019-10-15 13:09 MartinEDM 阅读(475) 评论(0) 推荐(0)
摘要: Bean生命周期 Bean创建 -->初始化 -->销毁 1.自定义Bean初始化 和销毁的方法 init-method和destroy-method 创建Bike类 配置类 测试 Bike Constructor...bike ...init...十月 15, 2019 10:05:36 上午 o 阅读全文
posted @ 2019-10-15 11:32 MartinEDM 阅读(1187) 评论(0) 推荐(0)
摘要: 1.@Bean 导入第三方的类或包的组件 2.包扫描+组件的标注注解(@ComponentScan: @Controller,@service,@Reponsitory,@Componet), 自己写的类 3.@Import[可以快速给容器中导入一个或者多个组件] 1@Import(要导入到容器中的 阅读全文
posted @ 2019-10-15 09:47 MartinEDM 阅读(348) 评论(0) 推荐(0)
摘要: -Dfile.encoding=UTF-8 阅读全文
posted @ 2019-10-14 15:14 MartinEDM 阅读(106) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页