初始化

This commit is contained in:
lijiaqi 2023-02-01 10:38:46 +08:00
parent e388a37454
commit b30db9a1d7
77 changed files with 0 additions and 172 deletions

View File

@ -1,115 +0,0 @@
server:
port: 8080
spring:
profiles:
active: dev
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
mvc:
pathmatch:
# 配置策略
matching-strategy: ant-path-matcher
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/ydool_demo?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: Wang09211108
druid:
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大
initial-size: 5
min-idle: 5
max-active: 1000
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall
use-global-data-source-stat: true
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connect-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 配置监控服务器
stat-view-servlet:
login-username: admin
login-password: 123456
reset-enable: false
url-pattern: /druid/*
# 添加IP白名单
#allow:
# 添加IP黑名单当白名单和黑名单重复时黑名单优先级更高
#deny:
web-stat-filter:
# 添加过滤规则
url-pattern: /*
# 忽略过滤格式
exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
thymeleaf:
prefix: classpath:/html/
suffix: .html
mybatis-plus:
global-config:
banner: false
enableSqlRunner: true
mapper-locations: classpath:xml/*.xml
ydool:
sms:
accessKeyId: LTAIlV2ofsSoQe1F
accessKeySecret: SzzGOXLWlH5uMfTzWSjSiXeJRob5Hn
knife4j:
# 开启增强配置
enable: true
# 开启Swagger的Basic认证功能,默认是false
basic:
enable: false
# Basic认证用户名
username: ydool
# Basic认证密码
password: ydool@123
setting:
# 开启调试
enableDebug: true
# 开启搜索框
enableSearch: true
# 开启OpenApi
enableOpenApi: true
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token:
# token名称 (同时也是cookie名称)
token-name: x-token
# token有效期单位s 默认30天, -1代表永不过期
timeout: 86400
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: 1800
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: true
# token风格
token-style: uuid
# 是否输出操作日志
is-log: false
# token前缀
token-prefix: Bearer

View File

@ -1,22 +0,0 @@
package ${package.Mapper};
import ${package.Entity}.${entity};
import ${superMapperClassPackage};
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* ${table.comment!} Mapper 接口
* </p>
*
* @author ${author}
* @since ${date}
*/
@Mapper
<% if(kotlin){ %>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<% }else{ %>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
}
<% } %>

View File

@ -1,14 +0,0 @@
package ${package.Service};
/**
* <p>
* ${table.comment!} 服务类
* </p>
*
* @author ${author}
* @since ${date}
*/
public interface ${table.serviceName} {
}

View File

@ -1,21 +0,0 @@
package ${package.ServiceImpl};
import ${package.Entity}.${entity};
import com.ydool.common.base.BaseService;
import com.ydool.system.mapper.${entity}Mapper;
import com.ydool.system.service.${table.serviceName};
import org.springframework.stereotype.Service;
/**
* <p>
* ${table.comment!} 服务类
* </p>
*
* @author ${author}
* @since ${date}
*/
@Service
public class ${table.serviceImplName} extends BaseService<${entity}Mapper, ${entity}> implements ${table.serviceName} {
}