The declared package does not match the expected package “”

前端 未结 21 2026
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 09:05

I am using Eclipse and have not used Java for sometime. However, I can compile my code on the command-line just fine and generate the necessary .class files. In

21条回答
  •  無奈伤痛
    2020-12-01 09:24

    I was using Spring Tool Suite 4. Not able to figure out the issue. The directory structure was according to the package name.

    But cleaning the project helped me.

提交回复
热议问题