# swagger2-support **Repository Path**: Instinctb/swagger2-support ## Basic Information - **Project Name**: swagger2-support - **Description**: 增强包 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-26 - **Last Updated**: 2024-02-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: 自定义starter ## README # 简介 `request-spring-boot-starter` 对是一个 `request/response` 的增强包,每个功能都是通过注解形式开启,不会有任何额外的影响开销 比如只想用日期格式化 `@EnableLocalDateTimeFormat` 即可,其它无关的 `Bean` 就不会被初始化,不会造成资源浪费 > 特点 - 使用拦截器 - swagger2 # 使用方法 ``` xml com.battcn request-spring-boot-starter 1.1.1-RELEASE ``` > 注意事项 **如果你想使用 `EnableRedis` 相关组件,你需要额外依赖** ``` xml org.springframework.boot spring-boot-starter-data-redis ``` 在主函数(Application.java) 中添加相应注解即可 ``` java import com.battcn.boot.request.annotation.*; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @EnableI18n @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } } ```