springboot 项目引入tk或者jpa 访问报错
今天弄新框架的时候,遇到个莫名其妙的问题,如下:
springboot 项目引入tk 后 Caused by: java.lang.IllegalStateException: Failed to asynchronously initialize native EntityManagerFactory: java.lang.NoSuchMethodError: 'javax.persistence.ValidationMode javax.persistence.spi.PersistenceUnitInfo.getValidationMode()
刚开始以为权限问题,后面排查原因是 spring-boot-starter-data-jpa 和 mapper-spring-boot-starter 有冲突,我把jpa 去掉了就好了