构建下单服务的基本配置信息

master
Administrator 2 years ago
parent f3ec4db8c4
commit 3dd267b73b

@ -13,4 +13,19 @@
<description>当前是下单服务</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,18 @@
package com.mashibing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author zjw
* @description
*/
@SpringBootApplication
@EnableDiscoveryClient
public class PlaceOrderStarterApp {
public static void main(String[] args) {
SpringApplication.run(PlaceOrderStarterApp.class,args);
}
}

@ -0,0 +1,10 @@
server:
port: 80
spring:
application:
name: placeorder
cloud:
nacos:
discovery:
server-addr: 114.116.226.76:8848

@ -26,7 +26,7 @@
<properties>
<spring.cloud-version>Hoxton.SR12</spring.cloud-version>
<spring.cloud.alibaba-version>2.2.7.RELEASE</spring.cloud.alibaba-version>
<spring.cloud.alibaba-version>2.2.6.RELEASE</spring.cloud.alibaba-version>
</properties>
<dependencyManagement>
<dependencies>

Loading…
Cancel
Save