src/main/resources/application-dev.yml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
# 启动之后要打开的地址
open:
browser:
url: http://localhost:8088/
#预览文件组件的启动地址
kkFileView:
url: D:\kkFileView-4.6.5\bin\
#加盐位数
salt: 5
#验证码
code:
width: 100
height: 38
codeSize: 4
#文件对外暴露的访问路径
file:
staticAccessPath: /api/file/**
#文件上传目录(注意Linux和Windows上的目录结构不同)
uploadFolder: D:\Code\idea-code\sums\src\main\resources\static\file\
#默认头像
toux: /api/file/toux.jpg
#开发环境
IndexController:
limit: 10
#修改项目端口号
server:
port: 8088
# servlet:
# context-path: /sums
spring:
# application:
# name: sums
thymeleaf:
cache: false
prefix: classpath:/templates/
suffix: .html
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/sums?serverTimezone=Asia/Shanghai&characterEncoding=utf-8
username: root
password: 123456
druid:
#druid配置
# 连接池的配置信息
# 初始化大小,最小,最大
initial-size: 5
min-idle: 5
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
后面还有 32 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。