Eclipse编写代码时出现The word 'localhost' is not correctly spelled.禁告

有时工程中有下划线并提示 The word is not correctly spelled .

此问题是Eclipse校验单词拼写造成,如果出在配置文件中,一般会影响到程序的正常执行.

解决方法:

在Eclipse下的Window-->>Preference查找Spelling,然后把复选框“Enable spell checking“的钩去掉

如图:

Eclipse编写代码时出现The word 'localhost' is not correctly spelled.禁告

问题就可以顺利解决

共享快乐,相互帮助。