# SpringBoot_ForTest **Repository Path**: itwennet/spring-boot_for-test ## Basic Information - **Project Name**: SpringBoot_ForTest - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-05-26 - **Last Updated**: 2025-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringBoot_ForTest #### 介绍 springboot集成各种中间件的demo,集成中间件包括:mysql、oracle、clickhouse、db2、mariadb、postgresql、 sqlserver、redis、ignite、arangodb、activemq、rabbitmq、kafka、pulsar、okhttp、httpclient、netty、mina #### 软件架构 软件架构说明 #### 安装教程 1. 理论上尽量做到开箱即用,如果出现连接异常,可以修改agent.properties中对应中间件的连接信息。agent.properties中写入了大量的中间件连接信息,但是springboot启动的时候并不会去连接中间件,只有第一次请求抵达的时候才会去初始化连接。 2. demo中的ojdbc需要使用maven install安装,如果不想访问oracle数据库的话,把maven依赖注释掉也无妨。 #### 使用说明 1. 使用auto.test.include=xxx 来决定请求要访问哪个或者哪些中间件。例如想访问mysql,可以配置auto.test.include=mysql来达成目的。当然,也可以配置多个中间件,如auto.test.include=mysql、jedis 使一条请求同时访问mysql和redis 2. 注意,访问redis时auto.test.include要填写jedis或者redistemplate 3. 如果只是想测试请求,使用配置:auto.test.include=tomcat 4. 使用auto.test.role=xxx 来指定启动生产者或者消费者,例如auto.test.role=producer && auto.test.include=kafka 代表启动kafka的生产者 auto.test.role=producer(启动生产者)、auto.test.role=consumer(启动消费者)、auto.test.role=all(自身即是生产者也是消费者) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)