server.port=8088
|
|
spring.datasource.url = jdbc:mysql://localhost:3306/ffPark?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
spring.datasource.username = root
|
spring.datasource.password = wanghaojie
|
|
#spring.datasource.url = jdbc:mysql://39.92.96.240:3306/ffpark?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
#spring.datasource.username = boying
|
#spring.datasource.password = 2009boying
|
|
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
|
|
#最大连接数
|
spring.datasource.max-active=20
|
#最大空闲数
|
spring.datasource.max-idle=8
|
#最小空闲数
|
spring.datasource.min-idle=8
|
#初始化连接数
|
spring.datasource.initial-size=10
|
|
spring.jpa.database = MYSQL
|
spring.jpa.show-sql = false
|
spring.jpa.hibernate.ddl-auto = update
|
spring.jackson.serialization.fail-on-empty-beans=false
|
#指定数据库方言
|
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
|
#指定hibernate是否要根据持久化类自动建立数据表
|
spring.jpa.properties.hibernate.hbm2ddl.auto=update
|
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
|
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
|
#定义上传文件大小
|
spring.servlet.multipart.max-file-size: 1024MB
|
spring.servlet.multipart.max-request-size: 1024MB
|