74 lines
2.2 KiB
Properties
74 lines
2.2 KiB
Properties
# Server Configuration
|
|
server.port=18080
|
|
server.servlet.context-path=/mw/agent
|
|
server.compression.enabled=true
|
|
server.compression.mime-types=application/json
|
|
server.compression.min-response-size=1KB
|
|
|
|
# Spring DataSource Configuration
|
|
|
|
spring.datasource.url=jdbc:h2:mem:testdb;MODE=MySQL;DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
|
spring.datasource.driverClassName=org.h2.Driver
|
|
spring.datasource.username=sa
|
|
spring.datasource.password=
|
|
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
|
# enable H2 console
|
|
spring.h2.console.enabled=true
|
|
spring.h2.console.path=/h2-console
|
|
# server config
|
|
spring.h2.server.enable=false
|
|
spring.h2.server.port=18090
|
|
# auto init
|
|
spring.sql.init.mode=always
|
|
spring.sql.init.schema-locations=classpath:sql/schema.sql
|
|
|
|
|
|
# Mybatis Configuration
|
|
#mybatis.mapper-locations=classpath:mappers/*.xml
|
|
#mybatis.type-aliases-package=com.cmcc.magent.pojo.entry
|
|
#mybatis.configuration.default-enum-type-handler=com.cmcc.magent.common.DataBaseEnumHandler
|
|
mybatis-flex.global-config.print-banner=true
|
|
|
|
# Spring Jackson Configuration
|
|
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss.SSS
|
|
spring.jackson.timezone=GMT+8
|
|
spring.jackson.default-property-inclusion=non_null
|
|
spring.jackson.mapper.default-view-inclusion=true
|
|
spring.jackson.deserialization.fail-on-unknown-properties=false
|
|
|
|
# Swagger-UI Custom Path
|
|
springdoc.swagger-ui.path=/swagger-ui.html
|
|
|
|
# common :
|
|
common.token-expired-of-seconds=600
|
|
common.allow-passwd-retry-times=3
|
|
common.show-sql-command=true
|
|
common.res-sampling-msencond=10000
|
|
common.locale=zh_CN
|
|
common.data-root-directory=/opt/middleware-agent/data
|
|
common.async-deployment=true
|
|
|
|
# protocol:
|
|
protocol.check-timestamp=true
|
|
protocol.timeout-of-seconds=600
|
|
protocol.crypto-type=0
|
|
#crypto-key: 12354
|
|
|
|
# Platform Service
|
|
# Manager Platform URL
|
|
service.platform-url=http://xajhuang.com:3006/post
|
|
# APPID
|
|
service.platform-appid=appid
|
|
# cluster name
|
|
service.platform-cluster=cluster
|
|
# HTTP Request timeout of seconds
|
|
service.request-timeout=5
|
|
|
|
# threads pool
|
|
thread.core-pool-size=5
|
|
thread.max-pool-size=10
|
|
thread.queue-capacity=25
|
|
thread.name-prefix=Async-
|
|
|
|
gzs.sign.client-details-enabled=true
|
|
gzs.sign.client-details.'mw-open-82hsbmz8'=98rnk8pz6j08fp6q |