SpringBoot配置属性之NOSQL(四)
来源:互联网 发布:淘宝直播赚钱吗 编辑:程序博客网 时间:2024/05/17 23:01
cache
spring.cache.cache-names指定要创建的缓存的名称,逗号分隔(若该缓存实现支持的话)spring.cache.ehcache.config指定初始化EhCache时使用的配置文件的位置指定.spring.cache.guava.spec指定创建缓存要使用的spec,具体详见CacheBuilderSpec.spring.cache.hazelcast.config指定初始化Hazelcast时的配置文件位置spring.cache.infinispan.config指定初始化Infinispan时的配置文件位置.spring.cache.jcache.config指定jcache的配置文件.spring.cache.jcache.provider指定CachingProvider实现类的全限定名.spring.cache.type指定缓存类型
mongodb
spring.mongodb.embedded.features指定要开启的特性,逗号分隔.spring.mongodb.embedded.version指定要使用的版本,默认: 2.6.10
redis
spring.redis.database指定连接工厂使用的Database index,默认为: 0spring.redis.host指定Redis server host,默认为: localhostspring.redis.password指定Redis server的密码spring.redis.pool.max-active指定连接池最大的活跃连接数,-1表示无限,默认为8spring.redis.pool.max-idle指定连接池最大的空闲连接数,-1表示无限,默认为8spring.redis.pool.max-wait指定当连接池耗尽时,新获取连接需要等待的最大时间,以毫秒单位,-1表示无限等待spring.redis.pool.min-idle指定连接池中空闲连接的最小数量,默认为0spring.redis.port指定redis服务端端口,默认: 6379spring.redis.sentinel.master指定redis server的名称spring.redis.sentinel.nodes指定sentinel节点,逗号分隔,格式为host:port.spring.redis.timeout指定连接超时时间,毫秒单位,默认为0
springdata
spring.data.elasticsearch.cluster-name指定es集群名称,默认: elasticsearchspring.data.elasticsearch.cluster-nodes指定es的集群,逗号分隔,不指定的话,则启动client node.spring.data.elasticsearch.properties指定要配置的es属性.spring.data.elasticsearch.repositories.enabled是否开启es存储,默认为: truespring.data.jpa.repositories.enabled是否开启JPA支持,默认为: truespring.data.mongodb.authentication-database指定鉴权的数据库名spring.data.mongodb.database指定mongodb数据库名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存储,默认为truespring.data.mongodb.uri指定Mongo database URI.默认:mongodb://localhost/testspring.data.mongodb.username指定登陆mongodb的用户名.spring.data.rest.base-path指定暴露资源的基准路径.spring.data.rest.default-page-size指定每页的大小,默认为: 20spring.data.rest.limit-param-name指定limit的参数名,默认为: sizespring.data.rest.max-page-size指定最大的页数,默认为1000spring.data.rest.page-param-name指定分页的参数名,默认为: pagespring.data.rest.return-body-on-create当创建完实体之后,是否返回body,默认为falsespring.data.rest.return-body-on-update在更新完实体后,是否返回body,默认为falsespring.data.rest.sort-param-name指定排序使用的key,默认为: sortspring.data.solr.host指定Solr host,如果有指定了zk的host的话,则忽略。默认为: http://127.0.0.1:8983/solrspring.data.solr.repositories.enabled是否开启Solr repositories,默认为: truespring.data.solr.zk-host指定zk的地址,格式为HOST:PORT.
阅读全文
0 0
- SpringBoot配置属性之NOSQL(四)
- SpringBoot配置属性之NOSQL
- SpringBoot配置属性之NOSQL
- 三十六、SpringBoot配置属性之NOSQL
- SpringBoot配置属性中文释义NoSQL(四)
- SpringBoot配置属性之MVC
- SpringBoot配置属性之Server
- SpringBoot配置属性之DataSource
- SpringBoot配置属性之MQ
- SpringBoot配置属性之Security
- SpringBoot配置属性之Migration
- SpringBoot配置属性之其他
- SpringBoot配置属性之MQ
- SpringBoot配置属性之DataSource
- SpringBoot配置属性之MVC
- SpringBoot配置属性之Server
- SpringBoot配置属性之DataSource
- SpringBoot配置属性之MQ
- 拷贝构造和赋值运算符函数的重载
- require 和 include 用法区别
- MTK Camera Settings分析
- 10分钟搞懂Tensorflow 逻辑回归实现手写识别
- 【P2024】食物链 (扩展域并查集)
- SpringBoot配置属性之NOSQL(四)
- [Leetcode] 415. Add Strings 解题报告
- List、set以及map的遍历方式的整理
- 跑通 MobileNet in Tensorflow
- C#DynamicXml动态读取操作XML(XML到Object的通用实现)
- 传感器数据融合
- 前端简历模板
- python在图片上画特定大小角度矩形框
- Tomcat启动完毕后启动方法任务