赞
踩
目录
新建模块
设置文件路径
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>leyou</artifactId>
- <groupId>com.leyou.parent</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.leyou.search</groupId>
- <artifactId>leyou-search</artifactId>
- <version>1.0.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
- </dependency>
- <dependency>
- <groupId>com.leyou.item</groupId>
- <artifactId>leyou-item-interface</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.leyou.common</groupId>
- <artifactId>leyou-common</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- </dependency>
- </dependencies>
-
- </project>
- server:
- port: 8083
- spring:
- application:
- name: search-service
- data:
- elasticsearch:
- cluster-name: elasticsearch
- cluster-nodes: 192.168.62.128:9300
- eureka:
- client:
- service-url:
- defaultZone: http://127.0.0.1:10086/eureka
- registry-fetch-interval-seconds: 10
- instance:
- lease-renewal-interval-in-seconds: 5
- lease-expiration-duration-in-seconds: 15
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。