IDEA报错:Key ‘spring‘ is not expected here

Posted zhangphil

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA报错:Key ‘spring‘ is not expected here相关的知识,希望对你有一定的参考价值。

IDEA spring项目代码中,src\\main\\resources\\application.yml代码文件打开后里面代码全部红色,无法识别。鼠标放在红色的代码上,显示Key 'spring' is not expected here之类。

解决办法:关闭IDEA,重启IDEA即可,再次打开application.yml即一切正常。

以上是关于IDEA报错:Key ‘spring‘ is not expected here的主要内容,如果未能解决你的问题,请参考以下文章

spring “The matching wildcard is strict, but no declaration can be found for element”报错原

mac系统idea开发工具git -push 报错:no matching host key type found. Their offer: ssh-dss

JAVAEclipse中使用git进行pull远程代码,报错The current branch is not configured for pull No value for key branc

Spring报错No unique bean of type [com.xxx.Task] is defined: expected single matching bean but found 3(

JAVAEclipse中使用git进行pull远程代码,报错The current branch is not configured for pull No value for key branc

IDEA报错Could not autowire. No beans of 'XXXXX' type found