在使用maven多模块开发springboot项目中,发现子模块application.yml文件不生效 解决方法为取消子模块pom.xml文件的打包方式 <packaging>pom</packaging>