87 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Properties
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Properties
		
	
	
	
	
	
| server.port = 7600
 | |
| 
 | |
| ## 数据源配置
 | |
| spring.datasource.url = jdbc:postgresql://118.24.27.47:5432/work_management
 | |
| spring.datasource.userName = worker
 | |
| spring.datasource.password = qwer0329
 | |
| spring.datasource.driverClassName = org.postgresql.Driver
 | |
| 
 | |
| #spring.datasource.url = jdbc:postgresql://localhost:5432/work_management
 | |
| #spring.datasource.userName = postgres
 | |
| #spring.datasource.password = 123456
 | |
| #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
 | |
| spring.jpa.show-sql = true
 | |
| # 指定 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 = 9
 | |
| #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
 | |
| 
 | |
| ## 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 = 64MB
 | |
| # 最大请求大小
 | |
| spring.servlet.multipart.max-request-size = 70MB
 | |
| 
 | |
| # 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/
 | |
| 
 | |
| ## 自定义用户最大登录错误尝试次数
 | |
| my.MaxLoginErrorCount = 5
 | |
| 
 | |
| ## 自定义用户登录错误间隔时间(分钟)
 | |
| my.LoginErrorIntervalTime = 60
 | |
| 
 | |
| # 微信开放平台 appid
 | |
| wx.open.app_id=你的appid
 | |
| # 微信开放平台 appsecret
 | |
| wx.open.app_secret=你的appsecret
 | |
| # 微信开放平台 重定向url
 | |
| wx.open.redirect_url=http://你的服务器名称/api/ucenter/wx/callback
 |