49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
### 服务器配置
|
||
server:
|
||
port: 8080
|
||
### 配置
|
||
project:
|
||
captcha-open: true #是否开启登录验证码
|
||
shiro:
|
||
remember-me-timeout: 7 #cookie记住登录信息时间,默认7天(天)
|
||
global-session-timeout: 1800 #Session会话超时时间,默认30分钟(秒)
|
||
upload:
|
||
#file-path: #文件上传路径,默认在项目根目录upload下
|
||
static-path: /upload/** #上传文件静态访问路径
|
||
|
||
### spring配置
|
||
spring:
|
||
## 数据库配置
|
||
datasource:
|
||
driver-class-name: com.mysql.jdbc.Driver
|
||
url: jdbc:mysql://139.196.24.156:3306/cwhelp?useSSL=false&characterEncoding=utf-8
|
||
username: root
|
||
password: ifish7mysql
|
||
devtools:
|
||
restart:
|
||
enabled: true
|
||
## jpa配置
|
||
jpa:
|
||
show-sql: true
|
||
hibernate:
|
||
ddl-auto: update
|
||
properties:
|
||
hibernate.dialect: com.cwhelp.common.mysql.MySQLDialectUTF8
|
||
hibernate.format_sql: false
|
||
open-in-view: true
|
||
|
||
## thymeleaf模板设置
|
||
thymeleaf:
|
||
prefix: classpath:/templates
|
||
suffix: .html
|
||
mode: HTML
|
||
encoding: utf-8
|
||
servlet.content-type: text/html
|
||
cache: false
|
||
|
||
## 文件上传配置
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 10MB
|
||
max-request-size: 10MB
|
||
debug: true |