# 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://github.com/ForteScarlet/simple-robot-core) [](https://search.maven.org/artifact/io.github.ForteScarlet/simple-robot-core)
[](https://github.com/ForteScarlet/simple-robot-component-coolHttpApi) [](https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot-core/component-forcoolqhttpapi)
[](https://github.com/ForteScarlet/simple-robot-core-springboot-starter)
[](https://github.com/ForteScarlet/simple-robot-component-cqhttp-springboot-starter)[](https://search.maven.org/artifact/io.github.ForteScarlet.simple-robot/component-cqhttp-spring-boot-starter) [](https://codebeat.co/projects/github-com-fortescarlet-simple-robot-component-cqhttp-springboot-starter-master)
[](https://www.kancloud.cn/forte-scarlet/simple-coolq-doc) [](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)文件