yml is not compiled into the target when compiling. Finally, only add a jar to the pom file
<dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.10</version> </dependency>
Then save. It can be compiled into the target