2016-08-18 89 views
0

http://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/reference/htmlsingle/#boot-features-neo4j有一个@NodeEntityScan注解:Spring Boot 1.4.0.RELEASE中是否存在@NodeEntityScan?

可以使用@NodeEntityScan注释自定义实体的扫描位置。

根据http://docs.spring.io/spring-boot/docs/1.4.0.M3/api/org/springframework/boot/neo4j/NodeEntityScan.html它在春季版开机存在1.4.0.M3

http://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/api/org/springframework/boot/neo4j/NodeEntityScan.html表明它不存在1.4.0.RELEASE,我找不到它的任何提及。

这个注释是否存在于spring boot 1.4.0.RELEASE中?这是文档尚未更新的情况吗?应该用什么来代替?

回答

1

Spring Boot 1.4具有通用注释org.springframework.boot.autoconfigure.domain.EntityScanJavaDoc),它注册包以扫描JPA,Neo4J,MongoDB,Cassandra和Couchbase的实体。