cache
spring.cache.cache-names
指定要創(chuàng)建的緩存的名稱,逗號分隔(若該緩存實現(xiàn)支持的話)
spring.cache.ehcache.config
指定初始化EhCache時使用的配置文件的位置指定.
spring.cache.guava.spec
指定創(chuàng)建緩存要使用的spec,具體詳見CacheBuilderSpec.
spring.cache.hazelcast.config
指定初始化Hazelcast時的配置文件位置
spring.cache.infinispan.config
指定初始化Infinispan時的配置文件位置.
spring.cache.jcache.config
指定jcache的配置文件.
spring.cache.jcache.provider
指定CachingProvider實現(xiàn)類的全限定名.
spring.cache.type
指定緩存類型
mongodb
spring.mongodb.embedded.features
指定要開啟的特性,逗號分隔.
spring.mongodb.embedded.version
指定要使用的版本,默認(rèn): 2.6.10
redis
spring.redis.database
指定連接工廠使用的Database index,默認(rèn)為: 0
spring.redis.host
指定Redis server host,默認(rèn)為: localhost
spring.redis.password
指定Redis server的密碼
spring.redis.pool.max-active
指定連接池最大的活躍連接數(shù),-1表示無限,默認(rèn)為8
spring.redis.pool.max-idle
指定連接池最大的空閑連接數(shù),-1表示無限,默認(rèn)為8
spring.redis.pool.max-wait
指定當(dāng)連接池耗盡時,新獲取連接需要等待的最大時間,以毫秒單位,-1表示無限等待
spring.redis.pool.min-idle
指定連接池中空閑連接的最小數(shù)量,默認(rèn)為0
spring.redis.port
指定redis服務(wù)端端口,默認(rèn): 6379
spring.redis.sentinel.master
指定redis server的名稱
spring.redis.sentinel.nodes
指定sentinel節(jié)點,逗號分隔,格式為host:port.
spring.redis.timeout
指定連接超時時間,毫秒單位,默認(rèn)為0
springdata
spring.data.elasticsearch.cluster-name
指定es集群名稱,默認(rèn): elasticsearch
spring.data.elasticsearch.cluster-nodes
指定es的集群,逗號分隔,不指定的話,則啟動client node.
spring.data.elasticsearch.properties
指定要配置的es屬性.
spring.data.elasticsearch.repositories.enabled
是否開啟es存儲,默認(rèn)為: true
spring.data.jpa.repositories.enabled
是否開啟JPA支持,默認(rèn)為: true
spring.data.mongodb.authentication-database
指定鑒權(quán)的數(shù)據(jù)庫名
spring.data.mongodb.database
指定mongodb數(shù)據(jù)庫名
spring.data.mongodb.field-naming-strategy
指定要使用的FieldNamingStrategy.
spring.data.mongodb.grid-fs-database
指定GridFS database的名稱.
spring.data.mongodb.host
指定Mongo server host.
spring.data.mongodb.password
指定Mongo server的密碼.
spring.data.mongodb.port
指定Mongo server port.
spring.data.mongodb.repositories.enabled
是否開啟mongodb存儲,默認(rèn)為true
spring.data.mongodb.uri
指定Mongo database URI.默認(rèn):mongodb://localhost/test
spring.data.mongodb.username
指定登陸mongodb的用戶名.
spring.data.rest.base-path
指定暴露資源的基準(zhǔn)路徑.
spring.data.rest.default-page-size
指定每頁的大小,默認(rèn)為: 20
spring.data.rest.limit-param-name
指定limit的參數(shù)名,默認(rèn)為: size
spring.data.rest.max-page-size
指定最大的頁數(shù),默認(rèn)為1000
spring.data.rest.page-param-name
指定分頁的參數(shù)名,默認(rèn)為: page
spring.data.rest.return-body-on-create
當(dāng)創(chuàng)建完實體之后,是否返回body,默認(rèn)為false
spring.data.rest.return-body-on-update
在更新完實體后,是否返回body,默認(rèn)為false
spring.data.rest.sort-param-name
指定排序使用的key,默認(rèn)為: sort
spring.data.solr.host
指定Solr host,如果有指定了zk的host的話,則忽略。默認(rèn)為:http://127.0.0.1:8983/solr
spring.data.solr.repositories.enabled
是否開啟Solr repositories,默認(rèn)為: true
spring.data.solr.zk-host
指定zk的地址,格式為HOST:PORT.