JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer. Auto-Service-web line 1 Maven Java EE Configuration Problem错误解决方法

错误提示

JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer. Auto-Service-web line 1 Maven Java EE Configuration Problem

解决方案

1.在pom.xml文件中添加

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
    </configuration>
</plugin>

0001

2.右键项目Maven--》Update Project

0002


(1)
数据分享
  • 博客:312
  • 工具:20
  • 财经:83
  • 凡猫:3
  • 自媒体:4
  • 摄影:1
与人方便,与己方便
广告位