类 SpringUtil

java.lang.Object
cn.lonelysnow.generator.config.common.SpringUtil
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class SpringUtil extends Object implements org.springframework.context.ApplicationContextAware
作者:
LonelySnow
  • 字段详细资料

    • applicationContext

      private static org.springframework.context.ApplicationContext applicationContext
  • 构造器详细资料

    • SpringUtil

      public SpringUtil()
  • 方法详细资料

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      抛出:
      org.springframework.beans.BeansException
    • getBean

      public static Object getBean(String beanName)
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()