更新 template/entrance/web/src/main/resources/application.properties
This commit is contained in:
@@ -1,11 +1,73 @@
|
|||||||
spring.profiles.active=local
|
spring.profiles.active=local
|
||||||
envs=local,remote,online,custom
|
envs=local,remote,online,custom
|
||||||
spring.main.allow-bean-definition-overriding=true
|
|
||||||
project_id=${projectId}
|
|
||||||
project_name=handeTest
|
|
||||||
check=true
|
check=true
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
||||||
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
|
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
|
||||||
#注销掉es的自动装配
|
spring.jpa.open-in-view=false
|
||||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
spring.main.allow-circular-references=true
|
||||||
com.toco.agent.attach=true
|
spring.login.security.csrf=false
|
||||||
mq.type=memory
|
spring.main.allow-bean-definition-overriding=true
|
||||||
|
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
||||||
|
application.name={{ .projectName }}
|
||||||
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
project_id={{ .projectId }}
|
||||||
|
project_name={{ .projectName }}
|
||||||
|
base.package={{.groupId}}
|
||||||
|
{{- if eq .dbType "mysql" }}
|
||||||
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
|
{{- else if eq .dbType "postgresql" }}
|
||||||
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
|
vs.sqlmapper.dialect=postgresql
|
||||||
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
{{- else if eq .dbType "oracle" }}
|
||||||
|
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
|
||||||
|
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
|
||||||
|
vs.sqlmapper.dialect=oracle
|
||||||
|
{{- else if eq .dbType "dm" }}
|
||||||
|
spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
|
||||||
|
hibernate.dialect=org.hibernate.dialect.DmDialect
|
||||||
|
vs.sqlmapper.dialect=dm
|
||||||
|
{{- end }}
|
||||||
|
com.toco.agent.attach=false
|
||||||
|
|
||||||
|
#create default table
|
||||||
|
vs.db.basetable.create=true
|
||||||
|
server.ssl.enabled=false
|
||||||
|
server.forward-headers-strategy=framework
|
||||||
|
#request header
|
||||||
|
out.request.headers=
|
||||||
|
#response header
|
||||||
|
out.response.headers=Content-Type
|
||||||
|
#custom corss-domain headers, split by ','
|
||||||
|
cross.domain.headers=
|
||||||
|
#eg:https://vsstudio.teitui.com
|
||||||
|
out.host=
|
||||||
|
#hibernate.show_sql=true
|
||||||
|
#vs.sqlmapper.showSql=true
|
||||||
|
mock.enabled=false
|
||||||
|
|
||||||
|
## message config , use memeory for test, mq.type can be redis/rocketmq/kafka
|
||||||
|
mq.type=memory
|
||||||
|
|
||||||
|
#rocketmq.name-server=${ROCKETMQ_HOST:10.0.2.221:9876;10.0.2.222:9876;10.0.2.223:9876}
|
||||||
|
|
||||||
|
#redis
|
||||||
|
#redis-config.pool.hostAndPort=${REDIS_HOST:redis.byteawake.com:6379}
|
||||||
|
#redis-config.pool.password=${REDIS_PASSWORD:}
|
||||||
|
#redis-config.pool.maxTotal=100
|
||||||
|
#redis-config.pool.maxIdle=10
|
||||||
|
#redis-config.pool.minIdle=10
|
||||||
|
#redis-config.pool.maxWaitMillis=10000
|
||||||
|
#redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
||||||
|
#redis-config.pool.testOnBorrow=true
|
||||||
|
#redis-config.pool.testOnReturn=true
|
||||||
|
#redis-config.pool.testWhileIdle=true
|
||||||
|
#redis-config.pool.timeBetweenEvictionRunsMillis=30000
|
||||||
|
#redis-config.pool.minEvictableIdleTimeMillis=1800000
|
||||||
|
#redis-config.pool.numTestsPerEvictionRun=3
|
||||||
|
#redis-config.pool.blockWhenExhausted=true
|
||||||
|
#redis-config.pool.jmxEnabled=true
|
||||||
|
#redis-config.pool.lifo=true
|
||||||
|
|
||||||
|
#kafka.bootstrap-servers=localhost:9092
|
||||||
|
|||||||
Reference in New Issue
Block a user