Tag:yaml

  • Parsing and serializing yaml based on snakeyaml in Java

    Time:2021-6-10

    This article mainly introduces the implementation of parsing and serializing yaml based on snakeyaml in Java. The sample code is introduced in great detail in this article, which has a certain reference learning value for everyone’s study or work. Friends who need it can refer to it 1. Overview In this article, we will learn […]

  • Read yaml configuration file data based on Python and pyyaml

    Time:2021-1-13

    1、 First, we need to install pyyaml third-party library Just use PIP install pyyaml directly (I installed pyyaml before, so I am prompted that pyyaml is in this directory, version 5.1.2) 2、 Let’s first look at the format of the data in my yaml configuration file characteristic: 1. Case sensitive 2. Use indent to represent […]

  • Detailed configuration of spring boot plus (5)

    Time:2019-11-18

    Detailed configuration of spring boot plus Public configuration application.yml ? official full configuration of springboot Tomcat related configuration server: servlet: context-path: /api tomcat: max-threads: 1000 min-spare-threads: 30 uri-encoding: UTF-8 Context path: project access path Max threads: Tomcat thread pool size setting Min spare threads: number of Tomcat initialization threads Uri encoding: Tomcat encoding Application related […]

  • Spring-boot peripheral tour (1) yaml

    Time:2019-9-29

    Preface In Spring’s long history, configuration has been a headache for beginners. Often only one demo can be found on the Internet, and then the contents of the demo can be modified to their own data. However, once new requirements arise, it is often not known how to modify the configuration. Spring has gone fromxmlreachProperties […]

  • TOML: GitHub is going to change YAML’s life!

    Time:2019-9-25

    GitHub’s current new project has switched to CoffeeScript. CoffeeScript is much simpler and more elegant than JavaScript. Similarly, GitHub felt that YAML was not concise and elegant enough, so he created a TOML. The full name of TOML is Tom’s Obvious, Minimal Language, because its author is Tom Preston-Werner, co-founder of GitHub. TOML goals The […]

  • Detailed configuration of spring-boot-plus (V)

    Time:2019-8-22

    Detailed configuration of spring-boot-plus Common configuration application.yml (iii) SpringBoot official full configuration Tomcat related configuration server: servlet: context-path: /api tomcat: max-threads: 1000 min-spare-threads: 30 uri-encoding: UTF-8 Context-path: project access path Max-threads: Tomcat thread pool size settings Min-spare-threads: number of Tomcat initialization threads Uri-encoding: Tomcat coding Application-related configuration spring: application: name: spring-boot-plus banner: charset: UTF-8 location: […]

  • Confman – Configuration File Loading Module for Node Applications

    Time:2019-7-3

    One sentence introduction Confman is a powerful configuration file loader. Whether you like yaml, cson, json, properties, plist, ini, toml, XML or js, it can satisfy your desire, and it is simpler and more powerful. Supported features Support multiple configuration file formats, including yaml/cson/json/properties/plist/ini/toml/xml/js by default Supports cross-reference of configuration files. Any format can “refer […]

  • Install UltiSnips through vim-plug, add k8s auto-completion function to VIM

    Time:2019-3-17

    Install plug (https://github.com/junegunn/v… curl -fLo ~/.vim/autoload/plug.vim –create-dirs \https://raw.githubusercontent… Edit the ~/.vimrc file (if it does not exist, it is created) ” Specify a directory for plugins ” – For Neovim: ~/.local/share/nvim/plugged ” – Avoid using standard Vim directory names like ‘plugin’ call plug#begin(‘~/.vim/plugged’) ” Multiple Plug commands can be written in a single line using […]

  • CockroachDB deployment use

    Time:2019-2-21

    Container deployment Container deployment Pull mirror image docker pull cockroachdb/cockroach:v2.0.1 Create network docker network create -d bridge roachnet Look at the network (it’s not clear why there’s no docker0, or the relationship between docker0 and eb330591e579) # docker network ls NETWORK ID NAME DRIVER SCOPE eb330591e579 bridge bridge local 95d2d6473765 host host local 8edade4ef56f none […]

  • Recommend an online tool for transferring yaml files to JSON files

    Time:2019-2-15

    The full name of YAML is YAML Ain’t Markup Language, which is a concise non-markup language. It is data-centric, uses blanks, indentations, and rows to organize data, thus making the presentation more concise and readable. YAML is now widely used in the field of micro-service development. Some friends may not be familiar with the grammar […]