我按照老師的做法,為什么報(bào)錯(cuò),謝謝
***************************
APPLICATION FAILED TO START
***************************
Description:
Field client in test.Application required a bean of type 'org.elasticsearch.client.transport.TransportClient' that could not be found.
Action:
Consider defining a bean of type 'org.elasticsearch.client.transport.TransportClient' in your configuration.
2018-11-08
沒(méi)加bean注解
2018-06-12
可以嘗試:1.確認(rèn)es服務(wù)已有啟動(dòng)。2.確認(rèn)安裝的es和引入的es的jar包是同一版本。3.@Configuration注解的類中transportClient方法有加@bean注解