guns分析
# Guns开源项目分析
# 接口--抽象类--实现类模式的大量应用
# starter松耦合设计
以config-spring-boot-starter
为例, 在/META-INF/spring.factories
文件中定义springboot启动时要加载的类
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.stylefeng.roses.kernel.config.starter.GunsSysConfigAutoConfiguration
org.springframework.context.ApplicationListener=\
cn.stylefeng.roses.kernel.config.modular.listener.ConfigInitListener
1
2
3
4
2
3
4
GunsSysConfigAutoConfiguration
里面主要定义bean,和xml文件配置bean一个道理,它目前啥也没有做,只是做预留。
ApplicationListener
主要处理ApplicationEvent
的事件,
参考视频:
【No259】使用springboot开发guns后台管理系统视频教程下载-百度网盘下载-Java学习者论坛 (javaxxz.com) (opens new window)
解压密码: www.javaxxz.com