测试
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.didispace;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableEurekaServer
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# 配置应用服务器(Tomcat)
|
||||
server:
|
||||
port: 1111 # HTTP端口
|
||||
|
||||
# 配置发现服务器(Discovery Server)
|
||||
eureka:
|
||||
instance:
|
||||
hostname: localhost
|
||||
client: # 不是客户端,所以不注册自己
|
||||
registerWithEureka: false
|
||||
fetchRegistry: false
|
||||
|
||||
Reference in New Issue
Block a user