解决yml文件不生效

解决yml文件不生效

  1. 有可能是空格和回车问题。
  2. 静态文件没有导出
  1. 添加maven配置

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                    <include>**/*.yml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                    <include>**/*.yml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>
    
上一篇:http环境下解决navigator.getUserMedia` undefined 的问题


下一篇:Vertx 创建HTTP服务