Solve the problem that the idea error prompt is displayed only after the compiled file is out

Cause:
After updating a property value of a bean object, I can't remember whether other modules have shown that this property has been called. I glanced at the project structure habitually, and no red error message appeared. I thought it was perfect. Swish it up with git push. However, after a while, the technical director @ me, saying that I submitted the wrong code, and I had a question mark on my face. I hurriedly ran over and took a look, eclipse did prompt several error messages;

Although idea development is very cool, some parts are really annoying, because I also converted from eclipse to idea, and this error message above idea is really inhumane.
So I quickly Baidu and Google found the following solutions:
write picture description here

I configured it as above, and I quickly tested it and found that it didn't work. I still didn't get an error message. I still only show you the error message when I open the corresponding file. I use the IntelliJ IDEA 2017.2.2 version, Such a new version does not solve this problem;

Final solution:
After modifying each class, remember to operate Build -> Build Project or Build a specific module. After the execution is completed, the information window will prompt a specific error message, and a red wavy line will appear on the project structure;

Although it did not achieve the error prompt effect of eclipse in the end, it also initially solved the problem of resubmitting the wrong code. I hope you will share a better solution in the future.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325577434&siteId=291194637