bug:
编译报错:
Error:(10, 45) java: 找不到符号
符号: 方法 type()
位置: @interface org.springframework.data.elasticsearch.annotations.Document
原因是Elasticsearch版本是6.4.3,spring-boot-starter-parent版本是2.5.8,不兼容:
解决:将spring-boot-starter-parent版本改为2.1.5.RELEASE的即可:
最后编译不报错: