application.yml中的配置
test:
testList1: item1, item2, item3, item4
testList2:
- item1
- item2
- item3
testList1使用逗号分隔,testList2使用 - 短线
单元测试:
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.env.Environment;
@SpringBootTest
class YamlTest