# qiuguan-boot-starter
**Repository Path**: hacker9/qiuguan-boot-starter
## Basic Information
- **Project Name**: qiuguan-boot-starter
- **Description**: 自定义springboot starter
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-13
- **Last Updated**: 2022-01-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## 1.custom-boot-starter 模块
父模块,可以不需要的,比如新建一个 Empty Project, 然后去建 autoconfigure 和 starter 模块
我这里是参考了 mybatis 的写法
## 2.qiuguan-spring-boot-autoconfigure 模块
自动装配核心代码(写逻辑的)
## 3.qiuguan-spring-boot-starter 模块
* 管理jar包(依赖 qiuguan-spring-boot-autoconfigure)
* 命名规则:
>> 官方:spring-boot-starter-xxx
自定义:xxx-spring-boot-starter
## 4.service 模块
* service 模块就是业务模块,用来测试 starter 模块的功能
* 如何使用?
>> 1.放到 spring.factories 文件中,那么只需要导入依赖即可使用,这是开箱即用,零侵入,可插拔
2.不放到 spring.factories 文件中,利用自定义注解,参考 @EnableDateUtil
3.不放到 spring.factories 文件中,可以在service 模块中使用 @Import(DateAutoConfiguration.class)