Spring Boot 1.5.0-snapshot 上的 org.springframework.boot.orm.jpa.EntityScan [英] org.springframework.boot.orm.jpa.EntityScan on Spring Boot 1.5.0-snapshot

查看:41
本文介绍了Spring Boot 1.5.0-snapshot 上的 org.springframework.boot.orm.jpa.EntityScan的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决方案

请阅读发行说明: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 或显式配置.

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

解决方案

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.

这篇关于Spring Boot 1.5.0-snapshot 上的 org.springframework.boot.orm.jpa.EntityScan的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆