cwhelp/admin/target/classes/application.yml

49 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 服务器配置
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