while scanning for the next token found character ‘@‘ that cannot start any token. (Do not use @ for

项目场景:

问题描述

提示:这里描述项目中遇到的问题:

while scanning for the next token found character '@' that cannot start any token. (Do not use @ for indentation)  in 'reader', line 4, column 13:         active: @profileName@

原因分析:

提示:这里填写问题的分析:


解决方案:

提示:这里填写该问题的具体解决方案:

		<dependency>
			<groupId>org.yaml</groupId>
			<artifactId>snakeyaml</artifactId>
			<version>2.0</version>
		</dependency>
          <resources>
			<resource>
				<directory>src/main/resources</directory>
				<!--开启过滤,用指定的参数替换directory下的文件中的参数-->
				<filtering>true</filtering>
			</resource>
		</resources>
	<profiles>
		<profile>
			<id>dev</id>
			<properties>
				<profileName>dev</profileName> # 这里的名称要跟yml中的active名称一致
			</properties>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>

		<profile>
			<id>prod</id>
			<properties>
				<profileName>prod</profileName>
			</properties>
		</profile>
	</profiles>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值