您的当前位置:首页正文

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

转载于:https://my.oschina.net/gh200/blog/903322

因篇幅问题不能全部显示,请点此查看更多更全内容

Top