程序包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>