|  |  | 
 |  |  |      */ | 
 |  |  |     //private static final int order_config = 0 ; | 
 |  |  |     private static final int order_idSetSuffix = 1 ; | 
 |  |  |     //private static final int order_init = 2 ; | 
 |  |  |  | 
 |  |  |     /* | 
 |  |  |     * 解析各种***.config配置的ConfigListener,暂时不采用此种配置方式 | 
 |  |  |     * 解析各种***config.xml配置的ConfigListener,当前springboot工程暂时不采用此种配置方式 | 
 |  |  |     * | 
 |  |  |     @Bean | 
 |  |  |     public ConfigListener getGlConfigListener(){ | 
 |  |  | 
 |  |  |      * @return 注册Bean | 
 |  |  |      */ | 
 |  |  |     @Bean | 
 |  |  |     public ServletListenerRegistrationBean<? extends ServletContextListener> regSsoListener() { | 
 |  |  |     public ServletListenerRegistrationBean<? extends ServletContextListener> regIdSuffixListener() { | 
 |  |  |         ServletListenerRegistrationBean<GenerateIdSetSuffixListener> listenerRegistrationBean = new ServletListenerRegistrationBean<>(); | 
 |  |  |         listenerRegistrationBean.setListener(new GenerateIdSetSuffixListener()); | 
 |  |  |         listenerRegistrationBean.setOrder(order_idSetSuffix); | 
 |  |  |         return listenerRegistrationBean; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    /** | 
 |  |  | //     * 内部提供listener,该listener在系统启动时,初始化数据库数据 | 
 |  |  | //     * @return 注册Bean | 
 |  |  | //     */ | 
 |  |  | //    @Bean | 
 |  |  | //    public ServletListenerRegistrationBean<? extends ServletContextListener> regInitListener() { | 
 |  |  | //        ServletListenerRegistrationBean<InitListener> listenerRegistrationBean = new ServletListenerRegistrationBean<>(); | 
 |  |  | //        listenerRegistrationBean.setListener(new InitListener()); | 
 |  |  | //        listenerRegistrationBean.setOrder(order_init); | 
 |  |  | //        return listenerRegistrationBean; | 
 |  |  | //    } | 
 |  |  | } |