Skip to content

Instantly share code, notes, and snippets.

@chenhui0212
Created October 17, 2018 09:08
Show Gist options
  • Save chenhui0212/0f064d5b7d9a257eed93ba7857621a62 to your computer and use it in GitHub Desktop.
Save chenhui0212/0f064d5b7d9a257eed93ba7857621a62 to your computer and use it in GitHub Desktop.
server:
port: 8080
servlet:
context-path: /omega
spring:
# 数据源
datasource:
# Jdbc
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/omega?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root
password: root
# 连接池
hikari:
pool-name: hikariCP
maximum-pool-size: 25
minimum-idle: 5
# HTTP 编码
http:
encoding:
# 默认情况下,默认参数分别为“UTF-8”、“true”和“false”
charset: UTF-8
enabled: true
force: true
# 国际化
messages:
basename: i18n/messages
encoding: UTF-8
# MyBatis
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.dld.hll.omega.domain
config-location: classpath:mybatis-config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment