类 ContextIdApplicationContextInitializer

  • 所有已实现的接口:
    org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered

    public class ContextIdApplicationContextInitializer
    extends Object
    implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
    ApplicationContextInitializer that sets the Spring ApplicationContext ID. The spring.application.name property is used to create the ID. If the property is not set application is used.
    • 方法详细资料

      • setOrder

        public void setOrder​(int order)
      • getOrder

        public int getOrder()
        指定者:
        getOrder 在接口中 org.springframework.core.Ordered
      • initialize

        public void initialize​(org.springframework.context.ConfigurableApplicationContext applicationContext)
        指定者:
        initialize 在接口中 org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>