# simple-robot-component-cqhttp-springboot-starter **Repository Path**: ForteScarlet/simple-robot-component-cqhttp-springboot-starter ## Basic Information - **Project Name**: simple-robot-component-cqhttp-springboot-starter - **Description**: simple-robot的cqhttp组件的springboot-starter - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-03-28 - **Last Updated**: 2021-04-06 ## Categories & Tags **Categories**: spring-boot-ext **Tags**: None ## README # CQ HTTP组件 Springboot快速启动器 [![](https://img.shields.io/badge/simple--robot-core-green)](https://github.com/ForteScarlet/simple-robot-core) [![img](https://camo.githubusercontent.com/f8464f5d605886b8369ab6daf28d7130a72fd80e/68747470733a2f2f696d672e736869656c64732e696f2f6d6176656e2d63656e7472616c2f762f696f2e6769746875622e466f727465536361726c65742f73696d706c652d726f626f742d636f7265)](https://search.maven.org/artifact/io.github.ForteScarlet/simple-robot-core)
[![](https://img.shields.io/badge/simple--robot-component--cqhttp-green)](https://github.com/ForteScarlet/simple-robot-component-coolHttpApi) [![](https://img.shields.io/maven-central/v/io.github.ForteScarlet.simple-robot-core/component-forcoolqhttpapi)](https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot-core/component-forcoolqhttpapi)
[![](https://img.shields.io/badge/simple--robot-core--springboot--starter-green)](https://github.com/ForteScarlet/simple-robot-core-springboot-starter)
[![](https://img.shields.io/badge/simple--robot-component--cqhttp--springboot--starter-green)](https://github.com/ForteScarlet/simple-robot-component-cqhttp-springboot-starter)[![](https://img.shields.io/maven-central/v/io.github.ForteScarlet.simple-robot/component-cqhttp-spring-boot-starter)](https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot/component-cqhttp-spring-boot-starter) [![codebeat badge](https://codebeat.co/badges/d5ba017a-b029-41d6-be94-a17702e50e1c)](https://codebeat.co/projects/github-com-fortescarlet-simple-robot-component-cqhttp-springboot-starter-master)
[![](https://img.shields.io/badge/%E7%9C%8B%E4%BA%91%E6%96%87%E6%A1%A3-doc-green)](https://www.kancloud.cn/forte-scarlet/simple-coolq-doc) [![](https://img.shields.io/badge/QQ%E7%BE%A4-782930037-blue)](https://jq.qq.com/?_wv=1027&k=57ynqB1) # 项目地址 [Github](https://github.com/ForteScarlet/simple-robot-component-cqhttp-springboot-starter) or [Gitee](https://gitee.com/ForteScarlet/simple-robot-component-cqhttp-springboot-starter) ## 使用 首先,引入依赖; > https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot/component-cqhttp-spring-boot-starter **Maven** ```xml io.github.ForteScarlet.simple-robot component-cqhttp-spring-boot-starter ${version} ``` **Gradle** ``` implementation 'io.github.ForteScarlet.simple-robot:component-cqhttp-spring-boot-starter:${version}' ``` 然后编写好配置类(与Springboot公用一个`application.properties`配置类) ~~配置编好后在启动类上使用`@SimpleRobotSpringBootApplication`代替`@SpringbootApplication`注解,并启动Springboot即可。~~ ```java @SimpleRobotSpringBootApplication public class TestApplication { public static void main(String[] args) { SpringApplication.run(Test1.class, args); } } ``` ~~其中,`@SimpleRobotSpringBootApplication`是[核心启动器](https://github.com/ForteScarlet/simple-robot-core-springboot-starter)所提供的,如果切换官方启动器,理论上不需要变更代码。~~ **`1.9.1`之后,不再需要更替启动注解了。像往常一样即可。** ```java @SpringBootApplication public class RunApplication { public static void main(String[] args) { SpringApplication.run(RunApplication.class, args); } } ``` ## 核心启动器 每一个组件启动器中一般来说都包含一个核心启动器。 正常情况下,你无需手动导入此坐标。 核心启动器的坐标为: > 仓库地址:https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot/core-spring-boot-starter ```xml io.github.ForteScarlet.simple-robot core-spring-boot-starter ${version} ``` 但是,假如:组件启动器的版本为`1.9.1`,而**前缀同为**`1.9`的核心启动器的最新一个版本是`1.9.2`,那么你可以选择手动导入这个更新一个版本的核心来升级内部的核心启动器。 ## 其他链接 #### 快速启动器的Demo项目 https://github.com/ForteScarlet/simple-robot-demo-cqhttp-sbstarter #### 核心 https://github.com/ForteScarlet/simple-robot-core #### CQ HTTP组件 https://github.com/ForteScarlet/simple-robot-component-coolHttpApi #### 核心Springboot启动器 https://github.com/ForteScarlet/simple-robot-core-springboot-starter # 更新日志 查看[UPDATE.md](./UPDATE.md)文件