npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
@qq_嗯_8
这位小朋友~这是SpringBoot基础,你可以检查一下配置类是否加了@Configuration注解
这位小朋友~这是SpringBoot基础,你可以检查一下配置类是否加了@Configuration注解
2017-09-18
@Autowired
private TransportClient client;
启动时报了Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.elasticsearch.client.transport.TransportClient' available:
debug的时候发现@Bean
public TransportClient client() 这个方法根本就没有进去执行
private TransportClient client;
启动时报了Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.elasticsearch.client.transport.TransportClient' available:
debug的时候发现@Bean
public TransportClient client() 这个方法根本就没有进去执行
2017-09-18
我发现我还得加个依赖
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>5.5.2</version>
</dependency>
不然报错。。。
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>5.5.2</version>
</dependency>
不然报错。。。
2017-09-18