# springboot-datasource **Repository Path**: huangtao_2021/springboot-datasource ## Basic Information - **Project Name**: springboot-datasource - **Description**: springboot对接多数据源(mybatisplus+mysql+sqlserver) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2023-11-22 - **Last Updated**: 2025-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # plus #### 介绍 Java项目模板:SpringBoot+mybatis-plus+druid+多数据源(mysql/sqlserver动态切换) * master: 线上 * beta: 测试 * other: 各自分支 #### 使用说明 1. 拉取项目到本地: git clone xxx 2. 用 idea 打开项目,在 terminal 里面输入 mvn archetype:create-from-project 3. 脚手架项目编译成功后到 install 到本地 1. cd target/generated-sources/archetype 2. mvn install 4. 用 idea 打开一个新窗口准备使用脚手架新建工程 5. 新建 maven 项目,勾选 create from archetype,点击 add Archetype 输入 ``` groupId : com.plus artifactId : plus-template-archetype version : 0.0.1-SNAPSHOT ``` 6. 选择添加的骨架新建项目,在配置中心配置相关项目的配置,如:你自己的 mysql 连接 7. 系统生成的 API 管理工具 swagger 接口文档地址: #### 软件架构 软件架构说明 ##### java * base : 基础类 * common : 公共类 * config : 配置 * constant : 常量,存放固定不变的信息 * dto : 入参对象 * entity : 实体对象,与数据库表一一对应 * exception : 自定义异常 * mapper : dao * service : 业务层接口 * impl : 业务逻辑实现类 * utils : 自定义工具 ##### resources * sql : mapper.xml * templates : 代码生成模板 * application.beta : 测试环境配置 * application.deploy : 线上环境配置 * logback-spring : logback配置