# SZM-BOOT生态
**Repository Path**: sinszm/szm-boot
## Basic Information
- **Project Name**: SZM-BOOT生态
- **Description**: 快速构建基于SpringBoot的微服务及相关服务生态 Copyright © 2019 sinsz.com All rights reserved. https://www.sinsz.com
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: develop
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 11
- **Forks**: 3
- **Created**: 2019-04-22
- **Last Updated**: 2024-08-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# SZM-BOOT生态
#### 介绍
快速构建基于SpringBoot的微服务及相关服务生态 Copyright © 2019 sinsz.com All rights reserved. https://www.sinsz.com
#### 软件架构
本项目为微服务依赖组件构建集市,便于程序员、架构师快速搭建项目所需结构和通用处理框架,整体设计思路在于组件解耦、零配置。
#### 安装教程
1.依赖引入
```
com.sinszm
szm-boot
0.0.6
pom
import
com.sinszm
szm-boot-common
com.sinszm
szm-boot-web
com.sinszm
szm-boot-mdb
com.sinszm
szm-boot-basicwx
org.springframework.boot
spring-boot-starter-test
test
```
2.添加配置
```
-- szm-boot-web
#如不需要WebSocket支持,请将ws开关设置为false
szm.boot.ws.enable=true
szm.boot.ws.uri=/xxx,/xxxx
szm.boot.ws.js-uri=/js/xxx,/js/xxxx
szm.boot.ws.processor=......
-- szm-boot-mdb
#1.必须要添加数据源配置参数,并且需要在项目的配置类处开启扫描【`@MapperScan("xxx.xxx.xx")`】
#2.在resources目录创建目录`mybatis`或`META-INF/mybatis`目录,该目录中主要存储对应的mapper数据库查询配置文件
spring.datasource.platform=mysql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.8.203:3306/gftech_data
spring.datasource.username=admin
spring.datasource.password=admin
spring.datasource.hikari.connection-test-query='select 1'
-- szm-boot-basicwx
支付配置
szm:
boot:
wx:
app-id: wx9bd8fa49xxxxx
mch-key: 30B9C650BF2CC0B776C80D3061FD1AFC
#服务商商户
mch-id: 14234232342
#服务商商户对应的证书
mch-cert-uri: /Users/chenjianbo/cert/14xxxxxxrt/apiclient_cert.p12
#普通商户
#mch-id: 15081231231
#普通商户对应的证书
#mch-cert-uri: /Users/chenjianbo/cert/150xxxxxx0213_cert/apiclient_cert.p12
```
#### 使用说明
1. 示例1:
```
@GetMapping("/hello")
public Response