程序包javax.persistence不存在

程序包javax.persistence不存在 ,这个问题的解决办法 。

这是项目 的jdk 编译的插件的版本

如果报错 就把 注释部分 compilerArguments 换一下

<!-- compiler插件, 设定JDK版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2<ersion> <configuration> <source>1.6</source> <target>1.6</target> <showWarnings>true</showWarnings> <!-- <compilerArguments> --> <!-- <verbose /> --> <!-- <bootclasspath>${java.home}b/rt.jar;${java.home}b/jce.jar</bootclasspath> --> <!-- </compilerArguments> -->

<compilerArguments> <verbose /> <bootclasspath>${java.home}b/rt.jar</bootclasspath> </compilerArguments> </configuration> </plugin>

程序包javax.persistence不存在 ,这个问题的解决办法 。 这是项目 的jdk 编译的插件的版本 如果报错 就把 注释部分 compilerArguments 换一下 org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.6 1.6 true ${java.home}b/rt.jar
经验分享 程序员 微信小程序 职场和发展