Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

snakeyaml

Spring Boot: read list from yaml using @Value or @ConfigurationProperties

December 28, 2023 by Tarik

use comma separated values in application.yml corsHostsAllow: http://foo1/, http://foo2/, http://foo3/ java code for access @Value(“${corsHostsAllow}”) String[] corsHostsAllow I tried and succeeded 😉

Categories spring Tags configuration, snakeyaml, spring, spring-boot, yaml Leave a comment

gpg: Sorry, no terminal at all requested – can’t get input

July 30, 2023 by Tarik

If you configured Automatic Git commit signing with GPG on macOS and you see this error comment out no-tty in ~/.gnupg/gpg.conf as suggested by Fahl-Design. This will also allow you to generate new GPG keys following the GitHub instructions for new keys.

Categories linux Tags architecture, gnupg, linux, public-key-encryption, snakeyaml Leave a comment

How to define a map in a YAML file for simple POJO?

May 6, 2023 by Tarik

Here is how it can look like: #MAP keyMapping: key1: value1 key2: value2 Generally YAML format has natural support of key-value pairs. Take a look on the following tutorial (just for example): https://github.com/Animosity/CraftIRC/wiki/Complete-idiot’s-introduction-to-yaml Or just google “yaml map” for more details.

Categories java Tags java, pojo, snakeyaml, yaml Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa