# easy-http-spring-boot-starter **Repository Path**: niuml/easy-http-spring-boot-starter ## Basic Information - **Project Name**: easy-http-spring-boot-starter - **Description**: 提供型jar模型 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: https://gitee.com/niuml/easy-http-spring-boot-starter - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-30 - **Last Updated**: 2024-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 组件说明 - 当前包的目的是为了实现抽离代码的思想,代码逻辑(如果看过MyBatis的原码,这个就会很明白) - 主要功能是把http请求抽离,使用代理的方式进行处理,也类似于feign,代码功能不是很全,只是一种思想 - 如果有公司写的产品需要将jar提供给别的公司使用,使用这种方式,β格就会很高~ - 可以直接把代码复制到项目使用,也可以直接使用maven依赖 - 使用方式跟MyBatis和Feign基本类似 # 快速开始 ### 核心依赖 | 依赖 | 版本 | | ---------------------- |--------| | java | 21 | | spring-context | 6.1.1 | | spring-core | 6.1.1 | | spring-beans | 6.1.1 | | spring-expression | 6.1.1 | | spring-aop | 6.1.1 | ### 模块说明 ```lua 见名知意 ``` ### 使用说明 - #### 第一步 ```lua 只需要增加如下依赖即可(需提前将本项目拉取到本地并install) com.niuml easy-http-spring-boot-starter 1.0-SNAPSHOT ``` - #### 第二步 - ![img.png](img/img.png) ```lua 创建一个接口(interface),注解使用@EasyHttp ``` - #### 第三步 ![img_1.png](img/img_1.png) ```lua 启动类增加@EasyHttpScan,指明扫描的包 ``` - #### 第四步 - ![img_2.png](img/img_2.png) ```lua 在要使用的类型,直接注入使用即可。 ```