zoukankan      html  css  js  c++  java
  • Spring知识点

    1、缓存规范JSR107

    2、FactoryBean和BeanFactory

    工厂 BeanFactory 

    bean FactoryBean

    应用

    例如自己实现一个FactoryBean,功能:用来代理一个对象,对该对象的所有方法做一个拦截,在调用前后都输出一行LOG

    3、ApplicationContextAware

     https://docs.spring.io/spring/docs/5.0.4.BUILD-SNAPSHOT/javadoc-api/org/springframework/context/ApplicationContextAware.html

    4、InitializingBean

    /**
     * Interface to be implemented by beans that need to react once all their
     * properties have been set by a BeanFactory: for example, to perform custom
     * initialization, or merely to check that all mandatory properties have been set.
     *
     * <p>An alternative to implementing InitializingBean is specifying a custom
     * init-method, for example in an XML bean definition.
     * For a list of all bean lifecycle methods, see the
     * {@link BeanFactory BeanFactory javadocs}.
     *
     * @author Rod Johnson
     * @see BeanNameAware
     * @see BeanFactoryAware
     * @see BeanFactory
     * @see org.springframework.beans.factory.support.RootBeanDefinition#getInitMethodName
     * @see org.springframework.context.ApplicationContextAware
     */
    public interface InitializingBean {
    
    	/**
    	 * Invoked by a BeanFactory after it has set all bean properties supplied
    	 * (and satisfied BeanFactoryAware and ApplicationContextAware).
    	 * <p>This method allows the bean instance to perform initialization only
    	 * possible when all bean properties have been set and to throw an
    	 * exception in the event of misconfiguration.
    	 * @throws Exception in the event of misconfiguration (such
    	 * as failure to set an essential property) or if initialization fails.
    	 */
    	void afterPropertiesSet() throws Exception;
    
    }
    

      

    ref

    https://blog.csdn.net/luo609630199/article/details/82083593

    https://www.cnblogs.com/redcool/p/6413461.html

  • 相关阅读:
    看起来像一个输入框的input,实际上是有两个input
    Actions类的一些主要方法
    selenium通过WebDriverWait实现ajax测试,实现等页面元素加载完成
    如何判断新打开窗口是否需要切换
    鼠标悬停
    Selenium WebDriver使用IE浏览器
    Element should have been select but was input
    58同城Java面试
    2个线程ABAB或者BABA循环输出
    使多个线程循环输出099099
  • 原文地址:https://www.cnblogs.com/huilei/p/10034335.html
Copyright © 2011-2022 走看看