码上敲享录 > Myeclipse开发常见问题解答 > One or more constraints have not been satisfied. Spring 4.1 requires Java 1.6 or newer

One or more constraints have not been satisfied. Spring 4.1 requires Java 1.6 or newer

上一章章节目录下一章 2017-12-07已有5436人阅读 评论(0)

执行Update Project后报错One or more constraints have not been satisfied.

Spring 4.1 requires Java 1.6 or newer


问题描述:

一个或多个条件没满足,Spring4.1要求J2SE-1.6或者以上版本。

解决方法:

1.手动:myeclipse 右击项目>build path>configure build path,切换到Libraries便签页,选择JRE System Library,点击右边的edit,选择更高版本即可。

2.自动:一劳永逸的方法,在pom.xml的<project></project>内加以下配置,可以是1.6,1.7等

<build>

<plugins>

<!-- Compiler 插件, 设定JDK版本 -->

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.5.1</version>

<configuration>

<source>1.6</source>

<target>1.6</target>

<showWarnings>true</showWarnings>

</configuration>

</plugin>

</plugins>

</build>

本文地址:http://yayihouse.com/yayishuwu/chapter/1058


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交