org.springframework.boot.orm.jpa.EntityScan on Spring Boot 1.5.0-snapshot

匿名 (未验证) 提交于 2019-12-03 00:59:01

问题:

The EntityScan class has removed from SpringBoot 1.5.0-SNAPSHOT, When i change to 1.3.0-SNAPSHOT version, EntityScan exist.

i must add another dependancy to use EntityScan with SpringBoot 1.5.0-SNAPSHOT ?

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

回答1:

Please read the release notes: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes#entityscan :

The @org.springframework.boot.orm.jpa.EntityScan annotation has been deprecated and should be replaced with @org.springframework.boot.autoconfigure.domain.EntityScan or explicit configuration.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!