Idea--解决character ‘@‘ that cannot start any token. (Do not use @ for indentation
原文网址:Idea--解决character ‘@‘ that cannot start any token. (Do not use @ for indentation_IT利刃出鞘的博客-CSDN博客
简介
本文介绍如何解决character ‘@‘ that cannot start any token. (Do not use @ for indentation这个问题。
问题描述
有时候,IDEA突然运行不了项目了,之前是可以的,报错信息为:
21:34:05.973 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character '@' that cannot start any token. (Do not use @ for indentation)
in 'reader', line 5, column 13:
active: @env@
^
原因分析
maven没有同步。
方法
做完下边四步,一定能解决。
- 重启IDEA
- maven clean
- maven compile
- maven package
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Blazor Hybrid适配到HarmonyOS系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 分享4款.NET开源、免费、实用的商城系统
· 解决跨域问题的这6种方案,真香!
· 一套基于 Material Design 规范实现的 Blazor 和 Razor 通用组件库