今天弄新框架的時候,遇到個莫名其妙的問題,如下:
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 去掉了就好了