fire_point/src/main/resources/application.properties

81 lines
2.5 KiB
Properties
Raw Normal View History

server.port = 6801
2021-07-12 14:51:34 +08:00
## 数据源配置
spring.datasource.url = jdbc:postgresql://118.24.27.47:5432/fire_point
spring.datasource.userName = fire_manage
spring.datasource.password = fire456
2021-07-12 14:51:34 +08:00
spring.datasource.driverClassName = org.postgresql.Driver
server.tomcat.uri-encoding=UTF-8
# 关闭spring data 的redis仓库
spring.data.redis.repositories.enabled = false
# jackson 配置
spring.jackson.serialization.write-date-keys-as-timestamps=false
## Hikari连接池设置
spring.datasource.hikari.auto-commit = true
spring.datasource.hikari.maximum-pool-size = 100
spring.datasource.hikari.idle-timeout = 10000
spring.datasource.hikari.minimum-idle = 5
spring.datasource.hikari.validation-timeout = 3000
## Spring Data JPA 配置
spring.jpa.database = POSTGRESQL
spring.jpa.database-platform = org.hibernate.dialect.PostgreSQLDialect
2021-08-06 11:36:13 +08:00
spring.jpa.show-sql = false
2021-07-12 14:51:34 +08:00
# 指定 ddl mode (none, validate, create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# 命名策略
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
#spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL95Dialect
#spring.jpa.properties.hibernate.dialect = org.hibernate.spatial.dialect.postgis.PostgisDialect
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
## Redis配置
spring.cache.type = redis
spring.redis.database = 12
spring.redis.host = localhost
spring.redis.port = 6379
spring.redis.password=sdust2020
spring.redis.timeout = 10000
spring.redis.lettuce.pool.max-active = 100
spring.redis.lettuce.pool.max-wait = 10000
spring.redis.lettuce.pool.max-idle = 100
spring.redis.lettuce.pool.min-idle = 1
spring.redis.lettuce.shutdown-timeout = 0
2021-07-12 14:51:34 +08:00
## Devtools配置
spring.devtools.livereload.enabled = true
## 多国语言配置
spring.messages.basename = i18n/messages
spring.messages.encoding = UTF-8
# 上传文件配置
spring.servlet.multipart.enabled=true
# 最大文件大小
spring.servlet.multipart.max-file-size = 100MB
2021-07-12 14:51:34 +08:00
# 最大请求大小
spring.servlet.multipart.max-request-size = 100MB
2021-07-12 14:51:34 +08:00
2021-07-19 10:27:19 +08:00
spring.main.allow-bean-definition-overriding = true
2021-07-12 14:51:34 +08:00
# Geoserver服务器地址
my.GeoserverAdress = http://139.199.98.175:9080/geoserver/
# 文件服务器地址
my.FileServerAdress = http://139.199.98.175:4096/
my.FileServerAdminAdress = http://127.0.0.1:4096/
dfs.ip = 192.168.2.9
dfs.port = 4096
2021-07-12 14:51:34 +08:00
## 自定义用户最大登录错误尝试次数
my.MaxLoginErrorCount = 5
## 自定义用户登录错误间隔时间(分钟)
my.LoginErrorIntervalTime = 60