Spring知识点回顾(02)AOP】的更多相关文章

Spring知识点回顾(08)spring aware BeanNameAware 获得容器中的bean名称 BeanFactoryAware 获得当前的bean factory ApplicationContextAware 获得当前的ApplicationContext MessageResourceAware 获得messageresource,可以获得文本消息 ApplicationEventPublisherAware 应用事件发布器,可以发布事件 ResourceLoaderAwar…
Spring知识点回顾(07)事件发布和监听 1.DemoEvent extends ApplicationEvent { public DemoEvent(Object source, String msg){ super(source); this.msg = msg; } } 2.DemoListener implements ApplicationEventListener<DemoEvent> { public void onApplicationEvent(DemoEvent ev…
Spring知识点回顾(01) 一.Java Config 1.服务和服务注入 2.Java 注解 :功能更强一些 3.测试验证 二.注解注入 1.服务和服务注入 2.配置加载 3.测试验证 三.总结和建议 1.配置方式 声明Bean的注解 @Component @Service @Repository @Controller 注入Bean的注解 @Autowired @Inject @Resource bean的配置扫描 @Configuration 和  @Bean: 用@Configura…
一.注解拦截 二.方法规则拦截…
1.设定环境中的active profiles 如:DispatcherServerlet的init-param spring.profiles.active=production spring.profiles.active=dev 如: public class WebInit implements WebApplicationInitializer { @Override public void onStartup(ServletContext sc) { sc.setInitParame…
经过昨天大量的简历投递,今天陆续收到面试邀约,明日准备大战一场,是死是活一试便知 1.数据库的范式 这算入门问题了吧,但凡是个数据库类的,都得问吧, 但我们在回答的时候开始背书啦 第一范式(1NF)无重复的列 第二范式(2NF)属性完全依赖于主键 [ 消除部分子函数依赖 ] 第三范式(3NF)属性不依赖于其它非主属性 [ 消除传递依赖 ] 还有什么BCNF,是不是看了好像十分清楚,但不看又好像懵懵懂懂的. 说个我的记忆方式吧 第一范式,1NF,无重复列,字段不冗余且必不可少.这必须得记住 第二范…
Java配置方式:@Bean @InitMethod @destroyMethod xml配置方式:init-method,destroy-method 注解方式:@PostConstruct,@PreDestroy…
注入普通字符 注入操作系统属性 注入表达式运算结果 注入其他bean属性 注入文件内容 注入网址内容 注入属性文件…
sigleton prototype request session globalsession stepscope…
一.知识点回顾 1.Mybatis环境搭建(DAO层的实现)(使用maven项目管理工具) 需要引入的依赖包: <!-- 单元测试junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.3</version> <scope>test</scope> </dep…