草庐IT

ScannerException

全部标签

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token

pom.xm中定义多环境配置如下:profiles> profile> id>devid> activation> activeByDefault>trueactiveByDefault> activation> properties> activatedProperties>devactivatedProperties> properties> profile> profile> id>testid> properties> activatedProperties>testactivatedProperties> properties> profile>

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘

一、解析yaml报错报错信息:Applicationrunfailedorg.yaml.snakeyaml.scanner.ScannerException:whilescanningforthenexttokenfoundcharacter'@'thatcannotstartanytoken.(Donotuse@forindentation)in'reader',line58,column13:active:@profiles.active@二、原因一、需要引入devdevtruetesttestprodprod二、需要开启resource过滤,才能进行占位符使用  .......    s