Step 1: Add “snakeyaml” to maven pom.xml as a dependency
1 2 3 4 5 6 7 |
<dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.17</version> </dependency> |
Step 2: Define a YAML file under src/main/resources.…