记一个使用Nacos的问题:bootstrap.yml和application.yml配置不生效

网上找了很多解决办法,都没解决,最后发现是之前写的过滤器的锅,把所有非.propertie和.xml的都给过滤了,删掉过滤器就行

    <build>
        <resources>
            <resource>
                <directory>src/main/resourcesdirectory>
                <includes>
                    <include>**/*.propertiesinclude>
                    <include>**/*.xmlinclude>
                includes>
                <filtering>falsefiltering>
            resource>
            <resource>
                <directory>src/main/javadirectory>
                <includes>
                    <include>**/*.propertiesinclude>
                    <include>**/*.xmlinclude>
                includes>
                <filtering>falsefiltering>
            resource>
        resources>
    build>

你可能感兴趣的:(杂七杂八)