After all depends on the routing problem compile the file path
https://www.cnblogs.com/convict/p/11330449.html
Check pom.xml in the packaging label is not a pom, instead jar
If you can not, add the following in the build tag
<resources>
<!-- <resource>-->
<!-- <filtering>false</filtering>-->
<!-- <directory>src/main/resources</directory>-->
<!-- <excludes>-->
<!-- <exclude>**</exclude>-->
<!-- </excludes>-->
<!-- </resource>-->
<resource>
<directory>src/main/resource</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>