我是靠谱客的博主 粗暴啤酒,最近开发中收集的这篇文章主要介绍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使用@符合问题:‘@‘ that cannot start any token. (Do not use @ for indentation)错误所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复