***************************
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.
没加bean注解
可以尝试:1.确认es服务已有启动。2.确认安装的es和引入的es的jar包是同一版本。3.@Configuration注解的类中transportClient方法有加@bean注解