赞
踩
- <!-- springboot elasticsearch整合 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
- </dependency>
- server:
- port: 8080
-
-
- spring:
- redis:
- database: 0
- host: 192.168.216.128
- port: 6379
- timeout: 5000
- password: 123456
- data:
- elasticsearch:
- cluster-name: elasticsearch-cluster #es集群名称
- cluster-nodes: 192.168.216.128:9300,192.168.216.128:9301,192.168.216.128:9302 #es集群所有节点的列表
- repositories:
- enabled: true
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
- url: jdbc:mysql://localhost:3306/product?characterEncoding=utf-8
- username: root
- password: 111111
- druid
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。