尚筹网2-4.项目模块(3).创建项目管理工程

1.坐标

group id:com.rgh.crowd

artifact id:distribution-crowd-6-project-manager

同样还是以MavenModule方式创建

2.依赖信息


    org.springframework.boot
    spring-boot-starter-web


    org.springframework.cloud
    spring-cloud-starter-netflix-eureka-client


    com.rgh.crowd
    distribution-crowd-1-common
    0.0.1-SNAPSHOT

3.application.yml

server:
  port: 5000
spring:
  application:
    name: project-manager
eureka:
  client:
    service-url:
      defaultZone: http://localhost:1000/eureka/
  instance:
    prefer-ip-address: true

4.主启动类

@EnableFeignClients
@EnableEurekaClient
@SpringBootApplication
public class CrowdMainType {
    
    public static void main(String[] args) {
        SpringApplication.run(CrowdMainType.class, args);
    }

}

你可能感兴趣的:(尚筹网2-4.项目模块(3).创建项目管理工程)