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)

problem

在spring boot项目中区分dev prod环境配置使用了@符号

spring:profiles:active: @profileActive@

报错:

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)

solution

mvn clean
在启动即可

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

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

    问题描述: spring:profiles:active: @activatedProperties@ 在yml读取pom.xml中定义的 profile变量 <profiles>< ...

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

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

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

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

  4. 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 ...

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

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

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

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

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

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

  8. SpringBoot报错:Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.Malforme

    出现这个问题的原因是因为你的snakeyaml版本不对,你可以试着先修改一下snakeyaml的版本,因为其实它本身不是一个问题. 如果你不想更改snakeyaml版本,那么可以先试着修改一下项目的字 ...

  9. springboot启动报错org.yaml.snakeyaml.error.YAMLException...

    报错代码: java.lang.IllegalStateException: Failed to load property source from location 'classpath:/appl ...

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

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

最新文章

  1. 【NOIP2016】愤怒的小鸟
  2. 11月15日BCH协议升级提案又双叒啜来了,请查收!
  3. unicode 编码转换漏洞_好程序员Python教程之字符串编码知识小结
  4. MySQL数据库:使用show profile命令分析性能
  5. ORACLE TEXT DATASTORE PREFERENCE(四)
  6. 9型转x型 cobol_多重排斥、价值嬗变与农村跨省婚姻研究——以东莞宗族型X村为例...
  7. [转]Intellij idea创建javaWeb以及Servlet简单实现
  8. 腾讯天衍实验室招聘科研实习生
  9. coroutine资源索引
  10. 前端码农的焦虑与救赎
  11. preg_match进行正则表达式匹配
  12. CentOS 7.4系统安装配置图解教程
  13. 删除数据表中的重复行
  14. abaqus2018安装教程win10_win10系统安装Abaqus2016全攻略
  15. 关于“调包”,职业调包侠在此!
  16. 【报告分享】2022快手磁力金牛家居百货行业营销洞察报告-磁力引擎(附下载)
  17. 51nod-LCA问题_by_zyz
  18. 程序员如何修炼项目管理能力?
  19. 实现 RSA 算法之改进和优化(第三章)(老物)
  20. 翻译软件哪个准确度高【免费】

热门文章

  1. HTML5期末大作业:电影网站设计——电影泰坦尼克号(4页) HTML+CSS+JavaScript 学生HTML个人网页作业作品下载 个人网页设计制作 大学生个人网站作业模板 简单个人网页制作
  2. n位整数去掉m位后求最大值问题
  3. mysql dcn_Tdsql DCN同步技术原理介绍
  4. 图像特效---LOMO Filter
  5. Hubstudio指纹浏览器和MaxProxy代理的配置教程
  6. excel表格如何转换成word表格_还不会转换格式?教你一招,Excel表格完美转换成Word文档...
  7. 与卡耐基梅隆大学博士交流笔记
  8. ‘mvn‘不是内部或外部命令
  9. win10重启不能上网(只能QQ上网,打不开浏览器网页)
  10. 凑算式(枚举与深度优先搜索)