库存服务~~ 基本配置信息

master
Administrator 2 years ago
parent 3dd267b73b
commit a206ef3878

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

@ -12,5 +12,15 @@
<artifactId>02-itemstock</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,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 ItemStockStarterApp {
public static void main(String[] args) {
SpringApplication.run(ItemStockStarterApp.class,args);
}
}

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