javax.persistence.Entity doesn't exist

人走茶凉 提交于 2019-12-12 04:45:36

问题


I added the following dependency to Maven:

<dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>persistence-api</artifactId>
            <version>1.0.2</version>
            <scope>provided</scope>
</dependency>

My IDE recognized javax.persistence, but doesn't recognize javax.persistence.Entity.

Do you know why?


回答1:


believe it or not by "mvn install -U" resolved it.



来源:https://stackoverflow.com/questions/43833662/javax-persistence-entity-doesnt-exist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!