我是靠谱客的博主 粗暴啤酒,这篇文章主要介绍application.yml使用@符合问题:‘@‘ that cannot start any token. (Do not use @ for indentation)错误,现在分享给大家,希望可以做个参考。

yml中的配置如下:

info:
 build.artifactId: "@project.artifactId@"
 build.version: "@project.version@"

运行项目后报错:
‘@’ that cannot start any token.

修改:我的项目构建-》父工程下面有多个module,配置eureka中info的显示步骤:

1.找到父工程中<build></build>
2.配置相关参数
	1)、 <resources>
            <resource>
            	<!--
            	src前不能有/,若有必然报错文章标题的错误,这也
            	是我遇到的问题
            	-->
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    2)、<plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-resources-plugin</artifactId>
              <version>3.0.2</version>
        </plugin>

最后

以上就是粗暴啤酒最近收集整理的关于application.yml使用@符合问题:‘@‘ that cannot start any token. (Do not use @ for indentation)错误的全部内容,更多相关application.yml使用@符合问题:‘@‘内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部