|  |  | 
 |  |  | package com.dy.sso.util; | 
 |  |  |  | 
 |  |  | import com.dy.pipIrrGlobal.util.OrgListenerSupport; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.boot.context.event.ApplicationReadyEvent; | 
 |  |  | import org.springframework.context.ApplicationListener; | 
 |  |  | import org.springframework.core.io.ResourceLoader; | 
 |  |  | import org.springframework.stereotype.Component; | 
 |  |  |  | 
 |  |  | @Component | 
 |  |  | public class SsoListener extends OrgListenerSupport implements ApplicationListener<ApplicationReadyEvent> { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     protected ResourceLoader resourceLoader ; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  | 
 |  |  |         } catch (InterruptedException e) { | 
 |  |  |             e.printStackTrace(); | 
 |  |  |         } finally { | 
 |  |  |             super.init(); | 
 |  |  |             //初始化机构 | 
 |  |  |             super.init(resourceLoader); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  |