springboot application.yml 配置文件。
server:
port: 8080
servlet:
context-path: /
spring:
application:
name: springboot
jpa:
show-sql: true
hibernate:
ddl-auto: update
properties:
hibernate.format_sql: true
open-in-view: false
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
datasource:
url: jdbc:mysql://127.0.0.1:3306/test1?autoReconnect=true
username: root
password: xxxxx
tomcat:
max-active: 4
min-idle: 2
initial-size: 2
hikari:
maximum-pool-size: 20
minimum-idle: 5
thymeleaf:
mode: HTML
encoding: UTF-8
servlet:
content-type: text/html
cache: false
mvc:
view:
prefix: classpath:/templates/
static-path-pattern: /**
resources:
static-locations: classpath:/static/server:
port: