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.