3 回答

TA贡献2003条经验 获得超2个赞
如果有人在 PetClinic 应用程序中遇到 wro4j 问题。
将 wro4j 版本更改为 1.9.0,它适用于 openjdk 版本“11.0.3” 2019-04-16
<wro4j.version>1.9.0</wro4j.version>

TA贡献1815条经验 获得超13个赞
您使用哪个 Java 版本?
在 Java 9 或更高版本上构建 Spring petclinic 时,已报告 wroj 问题https://github.com/wro4j/wro4j/pull/1041。
这些问题在 wroj 1.8.0 版本之后的代码中得到了解决https://github.com/wro4j/wro4j,但是没有发布这个解决方案的版本https://github.com/wro4j/wro4j/branches。
所以你必须自己构建 wroj 版本 1.8.1-SNAPSHOT 并使用这个版本在 Java 9 或更高版本上构建 petclinic framework-version。

TA贡献1842条经验 获得超12个赞
您在 Spring-boot 父依赖项中使用了错误的版本。您应该使用 2.0.6-RELEASE 或任何其他 RELEASE 版本。
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.6.RELEASE</version>
<type>pom</type>
</dependency>
希望能帮助到你!
添加回答
举报