小编典典

Spring Boot 1.5.0快照上的org.springframework.boot.orm.jpa.EntityScan

spring-boot

EntityScan类已从SpringBoot 1.5.0-SNAPSHOT中删除,当我更改为1.3.0-SNAPSHOT版本时,存在EntityScan。

我必须添加另一个依赖项才能将EntityScan与SpringBoot 1.5.0-SNAPSHOT一起使用?

https://github.com/spring-projects/spring-
boot/issues/8231


阅读 453

收藏
2020-05-30

共1个答案

小编典典

请阅读发行说明: https : //github.com/spring-projects/spring-
boot/wiki/Spring-Boot-1.4-Release-Notes#entityscan:

@org.springframework.boot.orm.jpa.EntityScan注释已弃用,应替换
@org.springframework.boot.autoconfigure.domain.EntityScan或明确的配置。

2020-05-30