Can't compile java class in Intellij Idea due to “cannot find symbol class X” error

前端 未结 6 910
暖寄归人
暖寄归人 2021-02-07 00:47

I created new Java module from scratch in my project. \"create \'src\' folder\" was selected in module creation wizard. There is single \"com\" package in source folder which co

6条回答
  •  我在风中等你
    2021-02-07 01:19

    If the problem can not revolve by invalid retart, or rebuild projet. however the maven clean install build well.

    Sometimes, the cause is tomcat's tasks. If ur maven build well, then there is no reason that error cant find symbol. So you can edit tomcat conf, check if there is task before launch was setting, just delet these tasks. Tomcat will only take the maven build.

提交回复
热议问题