Initial commit: Monisuo - 虚拟货币模拟交易平台
功能模块: - 用户注册/登录/KYC - 资金账户/交易账户 - 实时行情/币种管理 - 即时交易/充提审核 - 管理后台 技术栈: - 后端: SpringBoot 2.2.4 + MyBatis Plus - 前端: uni-app x (Vue3 + UTS) - 数据库: MySQL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
33
src/main/resources/application-dev.yml
Normal file
33
src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
server:
|
||||
port: 5010
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
username: monisuo
|
||||
password: JPJ8wYicSGC8aRnk
|
||||
url: jdbc:mysql://8.155.172.147:3306/monisuo?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
|
||||
#mybatis-plus
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:com/it/rattan/monisuo/mapper/*.xml
|
||||
|
||||
bean-searcher:
|
||||
packages: com.it.rattan.monisuo
|
||||
params:
|
||||
pagination:
|
||||
start: 1
|
||||
ignore-case-key:
|
||||
|
||||
|
||||
# mybatisplus代码生成器配置
|
||||
generator:
|
||||
username: root
|
||||
password: 123admin
|
||||
driver: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/spccloud?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
#dbTableList: #数据库的表,可多张(自己设置)
|
||||
#- rt_company
|
||||
prefix:
|
||||
rt
|
||||
58
src/main/resources/application-prd.yml
Normal file
58
src/main/resources/application-prd.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
server:
|
||||
port: 9010
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
username: root
|
||||
password: 897admin$$
|
||||
url: jdbc:mysql://47.97.10.240:3306/spccloud?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
initialSize: 1
|
||||
minIdle: 3
|
||||
maxActive: 80
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 30000
|
||||
validationQuery: select 'x'
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
# 打开PSCache,并且指定每个连接上PSCache的大小
|
||||
poolPreparedStatements: true
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
||||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||
|
||||
|
||||
#mybatis-plus
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:com.it.rattan.spccloud.mapper/*.xml
|
||||
|
||||
spccloud:
|
||||
pdf-download-path: C:/Users/Administrator/Desktop/temp/
|
||||
wkhtmltopdf-exe-path: C:/Users/Administrator/Desktop/wkhtmltopdf/bin/wkhtmltopdf.exe
|
||||
|
||||
|
||||
bean-searcher:
|
||||
packages: com.rattan.spccloud
|
||||
params:
|
||||
pagination:
|
||||
start: 1
|
||||
ignore-case-key:
|
||||
|
||||
|
||||
|
||||
# mybatisplus代码生成器配置
|
||||
#generator:
|
||||
#username: root
|
||||
#password: 123admin
|
||||
#driver: com.mysql.jdbc.Driver
|
||||
#url: jdbc:mysql://47.97.10.240:3306/spccloud?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
#dbTableList: #数据库的表,可多张(自己设置)
|
||||
#- rt_company
|
||||
#prefix:
|
||||
#rt
|
||||
5
src/main/resources/application.yml
Normal file
5
src/main/resources/application.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
|
||||
|
||||
16
src/main/resources/logback-spring.xml
Normal file
16
src/main/resources/logback-spring.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<contextName>logback</contextName>
|
||||
|
||||
<!-- 只输出到控制台 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user