update
This commit is contained in:
parent
6816ae95b5
commit
5bb328ec1f
|
|
@ -17,6 +17,7 @@ package com.smallchill.core.listener;
|
|||
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.event.ContextRefreshedEvent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.smallchill.core.config.BladeConfig;
|
||||
import com.smallchill.core.constant.Cst;
|
||||
|
|
@ -29,6 +30,7 @@ import com.smallchill.core.plugins.connection.ConnectionPlugin;
|
|||
* 启动监听器
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package com.smallchill.core.listener;
|
|||
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.event.ContextStoppedEvent;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.smallchill.core.plugins.PluginManager;
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ import com.smallchill.core.plugins.PluginManager;
|
|||
* 关闭监听器
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
public class StopListener implements ApplicationListener<ContextStoppedEvent> {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ import java.util.Map;
|
|||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class SpringAcaHolder implements ApplicationContextAware {
|
||||
|
||||
private static ApplicationContext applicationContext;
|
||||
|
|
|
|||
|
|
@ -44,16 +44,6 @@
|
|||
</property>
|
||||
<property name="configLocation" value="classpath:/config/beetlsql.properties"></property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- 工程启动监听配置 -->
|
||||
<bean id="startupListener" class="com.smallchill.core.listener.StartupListener"></bean>
|
||||
|
||||
<!-- 工程关闭监听配置 -->
|
||||
<bean id="stopListener" class="com.smallchill.core.listener.StopListener"></bean>
|
||||
|
||||
<!-- 全局application -->
|
||||
<bean id="springAcaHolder" class="com.smallchill.core.toolbox.support.SpringAcaHolder"></bean>
|
||||
|
||||
<!-- blade框架自定义config -->
|
||||
<bean id="bladeConfig" class="com.smallchill.core.config.BladeConfig">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user