ound character '@' that cannot start any token. (Do not use @ for indentation)
时间: 2024-03-30 12:29:52 浏览: 60
这个错误是由于在配置文件中使用了不正确的语法导致的。根据引用中的错误信息,错误出现在配置文件的第3行第13列,具体错误信息是"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)"。这个错误提示说明在配置文件中使用了不正确的缩进符号"@",而"@"不能作为缩进符号使用。
这个错误可能是由于配置文件中的某个属性值使用了错误的语法导致的。请检查配置文件中的属性值,确保没有使用错误的语法或缩进符号。
如果你能提供更多的配置文件内容或错误信息,我可以给出更具体的解决方案。
相关问题
Springboot配置文件报错 found character '@' that cannot start any token. (Do not use @ for indentation)...
这个错误通常是因为在配置文件中使用了 `@` 符号,而它被 Spring Boot 识别为注解,而不是普通字符。你可以尝试以下几个解决方法:
1. 如果 `@` 符号是用于注释,请使用 `#` 符号代替。
2. 如果 `@` 符号是用于数据库或 URL 等中的特殊字符,请使用 URL 编码进行转义。
3. 如果上述方法都无效,请将 `@` 符号替换为其他字符。
希望这些解决方法能够帮助到你。
found character '@' that cannot start any token. (Do not use @ for indentation)
关于您的问题,我理解您可能在使用某种编程语言时遇到了问题。错误信息 "found character '@' that cannot start any token" 意味着在代码中使用了 '@' 字符,而该字符不能用于标记的起始位置。
在大多数编程语言中,'@' 字符通常用于特定的语法或符号,例如电子邮件地址或注释。如果您在代码中使用了 '@' 字符,而它不符合语言的规范,编译器或解释器将会报告该错误。
您可以检查您的代码并确认是否意外地使用了 '@' 字符。如果是这样,请尝试删除或替换该字符,以符合语言的规范。如果问题仍然存在,请提供更多上下文或具体语言的信息,以便我能够提供更准确的帮助。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)