# spring-boot-starter-template **Repository Path**: spring-template/spring-boot-starter-template ## Basic Information - **Project Name**: spring-boot-starter-template - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-31 - **Last Updated**: 2021-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-boot-starter-template ### 项目介绍 本项目是以sms做主题,演示starter的用法 ### starter * base-common-starter 提供了公共的接口和工具类 * spring-boot-starter-sms-auto 使用示例:`example/sms-auto-demo` 引入jar包会自动配置,所以直接使用就可以 ```java @Autowired private SmsService smsService; ``` * spring-boot-starter-sms-import 使用示例: `example/sms-import-demo` 引入jar包不会自动配置,所以需要先引入再使用 ```java @SpringBootApplication @ImportAutoConfiguration(value = {SmsConfiguration.class}) public class SmsImportApplication { public static void main(String[] args) { SpringApplication.run(SmsImportApplication.class, args); } } ``` 使用 ```java @Autowired private SmsService smsService; ```