问题描述:

spring:profiles:active: @activatedProperties@

在yml读取pom.xml中定义的 profile变量

   <profiles><!-- 开发环境 --><profile><id>dev</id><properties><activatedProperties>dev</activatedProperties></properties></profile></profiles>

错误描述:

Caused by: org.yaml.snakeyaml.scanner.ScannerException:
while scanning for the next token found character '@' that cannot start any token.(Do not use @ for indentation)

解决方法:
在右侧的maven栏中重新reload的一下就行了

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token相关推荐

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

    一.解析yaml报错 报错信息: Application run failed org.yaml.snakeyaml.scanner.ScannerException: while scanning ...

  2. org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key

    org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key 异常: 14:50:33.658 [main] ERR ...

  3. 解决:SpringBoot 错误:Caused by: org.yaml.snakeyaml.scanner.ScannerException

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 错误: Caused by: org.yaml.snakeyaml.scanner.ScannerE ...

  4. SpringBoot中yml文件报错:org.yaml.snakeyaml.scanner.ScannerException:mapping values are not allowe here...

    场景 SpringBoot中配置静态资源访问路径时提示: 报错代码如下: 实现 首先确保yml文件的格式要正确,每个冒号的后面要紧跟空格. 根据提示报错信息在static-path-pattern这个 ...

  5. org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here

    报错详情 报错原因 映射不允许在这,需要对齐 解决原因 yml文件的格式要正确,每个冒号的后面要紧跟空格(13行在id:加一个空格即可)

  6. ScannerException: while scanning for the next token found character ‘@‘ 问题解决

    在把一个老项目修改为动态读取配置参数的时候,发现报了这个错误: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the ...

  7. 报错:ERROR yaml.scanner.ScannerError: while scanning a quoted sca 如何解决

    一.报错 ERROR test_login.py - yaml.scanner.ScannerError: while scanning a quoted sca 二.报错分析 根据报错提示,可以定位 ...

  8. pom.xml中解决Provides transitive vulnerable dependency maven:org.yaml:snakeyaml:1.33警告

    警告出现 构建springboot3项目时,pom文件的spring-boot-starter-web依赖部分整体高亮, 显示Provides transitive vulnerable depend ...

  9. Provides transitive vulnerable dependency org.yaml:snakeyaml:1.33

    一.错误介绍 新创建了一个springboot3的项目,弹出警告. <parent><groupId>org.springframework.boot</groupId& ...

最新文章

  1. SpringBoot thymeleaf使用方法,thymeleaf模板迭代
  2. 检测到你的手机处于root环境_选择群控系统的注意事项!繁星云手机盒子会比群控更合适好用吗!...
  3. mysql 密码 You must reset your password using ALTER USER statement before executing this statement....
  4. nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
  5. 树型权限管理插件:jQuery Tree Multiselect详细使用指南
  6. jQuery中HTML的操作
  7. .NET对象克隆的深究(转)
  8. mescroll上拉加载的实现
  9. php 删除某个文件夹,Php删除指定文件与文件夹的方法
  10. 《软件测试》第五次作业
  11. 六、Web服务器——FilterListener 学习笔记
  12. 区块链监管难题争论不休,这里具体谈谈辅助监管的四种技术
  13. docker-compose文件详解
  14. m3u8格式转换器android,m3u8文件视频转换器(安卓版)
  15. Bulletproofs: Short Proofs for Confidential Transactions and More学习笔记
  16. usaco Raucous Rockers
  17. 斐波那契(黄金分割法)查找算法
  18. 项目之: JMSamp、ActiveMQ
  19. 离群值是什么意思_离群值!离群值?离群值!
  20. aria2网页服务器错误,配置aria2服务器错误

热门文章

  1. AMD双核玩游戏死机问题解决方案
  2. ChatGPT是否会取代程序员:一场关于职业未来的讨论
  3. 二、BGP的路由原理
  4. 【高并发】由InterruptedException异常引发的思考
  5. upx脱壳工具_攻防世界simple_unpack_逆向之旅003
  6. python+django大学生心理健康测试咨询网站
  7. DELPHI编模拟鼠标,键盘操作,比键盘鼠标录制软件更强
  8. itext7 给PDF增加表单域并设置值
  9. 飘零网络验证-商业版3和金盾版1.5-研究中
  10. java调用fastdfs分布式文件系统