增加ApplicationListener功能

This commit is contained in:
Redkale
2017-12-06 14:33:39 +08:00
parent 2d4b865432
commit 463269a796
3 changed files with 75 additions and 1 deletions

View File

@@ -71,7 +71,13 @@
<source name="redis" value="org.redkalex.cache.RedisCacheSource" xxx="16">
<node addr="127.0.0.1" port="7070"/>
</source>
<!--
Application启动的监听事件,可配置多个节点
value: 类名必须是ApplicationListener的子类
-->
<listener value="org.redkalex.xxx.XXXApplicationListener"/>
<!--
【节点全局唯一】
全局的参数配置, 可以通过@Resource(name="property.xxxxxx") 进行注入<property>的信息, 被注解的字段类型只能是String、primitive class