订单服务&优惠券服务~~ 基本配置信息

master
Administrator 2 years ago
parent a206ef3878
commit 1eb3ec1a5a

@ -11,6 +11,15 @@
<artifactId>03-ordermanage</artifactId>
<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>
</dependencies>
</project>

@ -0,0 +1,19 @@
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 OrderManageStarterApp {
public static void main(String[] args) {
SpringApplication.run(OrderManageStarterApp.class,args);
}
}

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

@ -12,4 +12,14 @@
<artifactId>04-coupon</artifactId>
<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>
</dependencies>
</project>

@ -0,0 +1,19 @@
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 CouponStarterApp {
public static void main(String[] args) {
SpringApplication.run(CouponStarterApp.class,args);
}
}

@ -0,0 +1,10 @@
server:
port: 8082
spring:
application:
name: coupon
cloud:
nacos:
discovery:
server-addr: 114.116.226.76:8848
Loading…
Cancel
Save