9

yml的问题

 3 years ago
source link: https://www.oschina.net/question/2610573_2322597
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

yml的问题

骑着小猪很疯狂 发布于 05/21 18:20

如何读取数组的值name: ${lists[1]}'s dog  这个如何取?

person6:
  username: xiaoli${random.uuid}
  height: ${random.int}
  boss: false
  birth: 2001/12/08
  maps:
    k1: v1
    k2: 12
  lists:
    - a
    - b
    - c
  dog:
    name: ${lists[1]}'s dog
    color: yellow
  dogMap:
    k3:
      name: dog3
      color: dog3-color
  dogList:
    - name: dog-list1
      color: dog-list-color1
    - name: dog-list2
      color: dog-list-color2

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK