|
|
|
|
|
#服务端口
|
|
|
server.port=7003
|
|
|
server.servlet.context-path=${SERVER_CONTEXTPATH:}
|
|
|
|
|
|
#静态资源,设置上传文件的访问,上传文件的路径,要带斜杠
|
|
|
web.upload-path=upload/
|
|
|
#表示所有的访问经过静态资源路径
|
|
|
springboot.mvc.static-path-pattern=/**
|
|
|
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path}
|
|
|
|
|
|
|
|
|
|
|
|
#服务名
|
|
|
spring.application.name=tianbo.base.dev.devkit
|
|
|
spring.jackson.serialization.fail-on-empty-beans=false
|
|
|
spring.profiles.active=dev
|
|
|
|
|
|
#springboot2.0之后会把Date类型字段自动给转成UTC字符串 如:1990-11-26T16:00:00.000+0000,如果想转成时间戳在application.properties配置文件增加以下配置
|
|
|
#jackson相关配置
|
|
|
spring.jackson.date-format = yyyy-MM-dd HH:mm:ss
|
|
|
spring.jackson.serialization.write-dates-as-timestamps=false
|
|
|
#时区必须要设置
|
|
|
spring.jackson.time-zone=GMT+8
|
|
|
#ALWAYS的意思是即时属性为null,仍然也会输出这个key
|
|
|
spring.jackson.default-property-inclusion=always
|
|
|
|
|
|
#springcloud 基本配置
|
|
|
|
|
|
#eureka主机名,会在控制页面中显示
|
|
|
#DEV环境关闭注册。
|
|
|
spring.cloud.features.enabled=false
|
|
|
spring.cloud.discovery.enabled=false
|
|
|
spring.cloud.service-registry.auto-registration.enabled=false
|
|
|
#eureka.instance.hostname=${spring.cloud.client.ip-address}
|
|
|
#eureka服务器页面中status的请求路径
|
|
|
#eureka.instance.status-page-url=http://${eureka.instance.hostname}:${server.port}/index
|
|
|
#eureka注册中心服务器地址
|
|
|
#eureka.client.service-url.defaultZone=http://10.50.3.82:19527/eureka/
|
|
|
#eureka.instance.prefer-ip-address=true
|
|
|
#eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port}
|
|
|
#eureka.client.registry-fetch-interval-seconds=30
|
|
|
#eureka.instance.lease-renewal-interval-in-seconds=15
|
|
|
#eureka.instance.lease-expiration-duration-in-seconds=45
|
|
|
|
|
|
#spring.datasource oracle
|
|
|
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
#spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
|
|
|
#spring.datasource.url=jdbc:oracle:thin:@10.50.3.68:1521:CGODW
|
|
|
#spring.datasource.username=CGOETL
|
|
|
#spring.datasource.password=1q2w3e4r
|
|
|
|
|
|
#spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码
|
|
|
spring.datasource.url=jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8
|
|
|
spring.datasource.username=root
|
|
|
spring.datasource.password=
|
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
spring.datasource.max-idle=10
|
|
|
spring.datasource.max-wait=10000
|
|
|
spring.datasource.min-idle=5
|
|
|
spring.datasource.initial-size=5
|
|
|
|
|
|
#配置初始化大小/最小/最大
|
|
|
spring.datasource.druid.initial-size=1
|
|
|
spring.datasource.druid.min-idle=1
|
|
|
spring.datasource.druid.max-active=20
|
|
|
#获取连接等待超时时间
|
|
|
spring.datasource.druid.max-wait=60000
|
|
|
#一个连接在池中最小生存的时间
|
|
|
spring.datasource.druid.min-evictable-idle-time-millis=300000
|
|
|
#间隔多久进行一次检测,检测需要关闭的空闲连接
|
|
|
spring.datasource.druid.time-between-eviction-runs-millis=60000
|
|
|
#oracle
|
|
|
#spring.datasource.druid.validation-query=SELECT 'x' FROM DUAL
|
|
|
#mysql
|
|
|
spring.datasource.druid.validation-query=SELECT 1 FROM DUAL
|
|
|
spring.datasource.druid.test-while-idle=true
|
|
|
spring.datasource.druid.test-on-borrow=false
|
|
|
spring.datasource.druid.test-on-return=false
|
|
|
spring.datasource.druid.default-auto-commit=true
|
|
|
|
|
|
|
|
|
|
|
|
mybatis.mapper-locations=classpath:mapping/*.xml
|
|
|
mybatis.type-aliases-package=com.tianbo.warehouse.model
|
|
|
|
|
|
|
|
|
|
|
|
pagehelper.helper-dialect=mysql
|
|
|
#pagehelper.auto-dialect=true
|
|
|
#pagehelper.auto-runtime-dialect=true
|
|
|
pagehelper.reasonable=true
|
|
|
pagehelper.support-methods-arguments=true
|
|
|
pagehelper.params=count=countSql
|
|
|
|
|
|
#debug配置
|
|
|
trace=false
|
|
|
debug=false
|
|
|
logging.level.org.apache.tomcat=info
|
|
|
logging.level.com.tianbo.warehouse.dao=DEBUG
|
|
|
logging.level.org.springframework.security =info
|
|
|
|