SpringBoot配置属性系列

另外附上个人关于springboot的一些文章

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,默认为: 0

  • spring.redis.host
    指定Redis server host,默认为: localhost

  • spring.redis.password
    指定Redis server的密码

  • spring.redis.pool.max-active
    指定连接池最大的活跃连接数,-1表示无限,默认为8

  • spring.redis.pool.max-idle
    指定连接池最大的空闲连接数,-1表示无限,默认为8

  • spring.redis.pool.max-wait
    指定当连接池耗尽时,新获取连接需要等待的最大时间,以毫秒单位,-1表示无限等待

  • spring.redis.pool.min-idle
    指定连接池中空闲连接的最小数量,默认为0

  • spring.redis.port
    指定redis服务端端口,默认: 6379

  • spring.redis.sentinel.master
    指定redis server的名称

  • spring.redis.sentinel.nodes
    指定sentinel节点,逗号分隔,格式为host:port.

  • spring.redis.timeout
    指定连接超时时间,毫秒单位,默认为0

springdata

    • spring.data.elasticsearch.cluster-name
      指定es集群名称,默认: elasticsearch

    • spring.data.elasticsearch.cluster-nodes
      指定es的集群,逗号分隔,不指定的话,则启动client node.

    • spring.data.elasticsearch.properties
      指定要配置的es属性.

    • spring.data.elasticsearch.repositories.enabled
      是否开启es存储,默认为: true

    • spring.data.jpa.repositories.enabled
      是否开启JPA支持,默认为: true

    • spring.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存储,默认为true

    • spring.data.mongodb.uri
      指定Mongo database URI.默认:mongodb://localhost/test

    • spring.data.mongodb.username
      指定登陆mongodb的用户名.

    • spring.data.rest.base-path
      指定暴露资源的基准路径.

    • spring.data.rest.default-page-size
      指定每页的大小,默认为: 20

    • spring.data.rest.limit-param-name
      指定limit的参数名,默认为: size

    • spring.data.rest.max-page-size
      指定最大的页数,默认为1000

    • spring.data.rest.page-param-name
      指定分页的参数名,默认为: page

    • spring.data.rest.return-body-on-create
      当创建完实体之后,是否返回body,默认为false

    • spring.data.rest.return-body-on-update
      在更新完实体后,是否返回body,默认为false

    • spring.data.rest.sort-param-name
      指定排序使用的key,默认为: sort

    • spring.data.solr.host
      指定Solr host,如果有指定了zk的host的话,则忽略。默认为: http://127.0.0.1:8983/solr

    • spring.data.solr.repositories.enabled
      是否开启Solr repositories,默认为: true

    • spring.data.solr.zk-host
      指定zk的地址,格式为HOST:PORT.

SpringBoot配置属性之NOSQL的更多相关文章

  1. SpringBoot配置属性之Server

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  2. SpringBoot配置属性转载地址

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  3. SpringBoot配置属性之其他

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  4. SpringBoot配置属性之Migration

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  5. SpringBoot配置属性之Security

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  6. SpringBoot配置属性之MQ

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  7. SpringBoot配置属性之MVC

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  8. SpringBoot配置属性二

    server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...

  9. SpringBoot配置属性之Server参数

    server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...

随机推荐

  1. MonoDB的数据准备

      首先是数据的录入,为了分析我们服务器集群的性能,需要准备大量的用户数据,幸运的是mtools提供了mgenerate方法供我们使用.他可以根据一个数据模版向 MongoDB 中插入任意条 json ...

  2. Return array from functions in C++

    C++ does not allow to return an entire array as an argument to a function. However, you can return a ...

  3. express统一输出404页面

    不玩不知道,一玩吓一跳,还真是,nodejs全局404怎么搞? 直接,res.render("404.html")有可能会报错:Node.js : Cannot find modu ...

  4. 阿里云centos 6安装iRedmail过程

    全新系统 yum update cd /root wget http://www.iredmail.com/iRedMail-0.8.7.tar.bz2 tar xvf iRedMail-0.8.7. ...

  5. 【代码片段】如何使用CSS来快速定义多彩光标

    对于web开发中,我们经常都看得到需要输入内容的组件和元素,比如,textarea,或者可编辑的DIV(contenteditable) ,如果你也曾思考过使用相关方式修改一下光标颜色的,那么这篇技术 ...

  6. 使用Snap.svg类库实现的抖动式的幻灯播放效果

    在线演示 本地下载 这个幻灯中,使用了SVG来生成具有动画弧度的幻灯背景效果,如果你在项目中能够支持现代浏览器的话,尝试一下这个效果吧,很赞! 想了解基础使用,观看这个轻视频吧:Snap.svg处理和 ...

  7. java 从零开始,学习笔记之基础入门<集合>(十六)

    集合 集合:将多个元素放入到一个集合对象中去,对应的集合对象就可以用来存储多元素. Collection接口的子接口:Set接口和List接口. Map不是Collection接口的子接口. Coll ...

  8. shell语法使用

    这两天初次接触shell编程,所谓shell编程其实就是用一定的语法将各种基本的命令组合起来,让shell程序去解释执行.如果对windows的dos有了解,可以这样理解,其实shell脚本文件和.b ...

  9. Nginx server之Nginx添加ssl支持

    //环境介绍 1.nginx服务器:10.10.54.157 2.配置nginx服务器,当监听到来自客户端www.zijian.com:80请求时,转到10.10.54.150:1500这个web服务 ...

  10. 关于gitblit在Windows中无法Start的问题

    前期配置/data/defaults.properties文件,请自行百度 首先:找到该目录下的该文件 右键打开,找到SET ARCH=xx,将xx替换成x86 将该处的默认修改成配置环境变量的jvm ...