Skip to content

Commit

Permalink
modify application.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Jan 31, 2019
1 parent e3c3b6d commit e0e3be0
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 166 deletions.
57 changes: 0 additions & 57 deletions src/main/resources/application-dev.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions src/main/resources/application-prod.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions src/main/resources/application-test.yaml

This file was deleted.

60 changes: 58 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
server:
port: 8090
use-forward-headers: true
undertow:
io-threads: 2
worker-threads: 36
buffer-size: 1024
directBuffers: true
servlet:
session:
timeout: 86400s
spring:
profiles:
active: prod
datasource:
type: com.zaxxer.hikari.HikariDataSource

# H2database 配置
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/halo/halo
username: admin
password: 123456

#MySql配置
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
# username: root
# password: 123456

h2:
console:
settings:
web-allow-others: true
path: /h2-console
enabled: true
jpa:
hibernate:
ddl-auto: update
show-sql: false
freemarker:
allow-request-override: false
cache: false
check-template-location: true
charset: utf-8
content-type: text/html
expose-request-attributes: false
expose-session-attributes: false
expose-spring-macro-helpers: true
suffix: .ftl
settings:
auto_import: /spring.ftl as spring
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB

# 多语言资源文件路径
messages:
basename: i18n/messages
logging:
file: ./logs/log.log

0 comments on commit e0e3be0

Please sign in to comment.