在学习Fegin遇到上面问题,stackoverflow上有原因和解决办法,链接如下:
解决办法:
在pom.xml 上添加下面依赖
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>5.1.0.Final</version>
</dependency>