EntityScan类已从SpringBoot 1.5.0-SNAPSHOT中删除, 当我更改为1.3.0-SNAPSHOT版本时,EntityScan存在。
我必须添加另一个依赖,以便将EntityScan与SpringBoot 1.5.0-SNAPSHOT一起使用?
答案 0 :(得分:8)
请阅读发行说明:https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes#entityscan:
adulttotTicket
注释已经存在 已弃用,应替换为@org.springframework.boot.orm.jpa.EntityScan
或 显式配置。