Ajout Eureka
This commit is contained in:
parent
0ba2b328aa
commit
3e38091c32
20 changed files with 547 additions and 3 deletions
|
|
@ -0,0 +1,14 @@
|
|||
package com.mcommerce.eurekaserver;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableEurekaServer
|
||||
public class EurekaServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(EurekaServerApplication.class, args);
|
||||
}
|
||||
}
|
||||
3
eureka-server/src/main/resources/bootstrap.properties
Normal file
3
eureka-server/src/main/resources/bootstrap.properties
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
spring.application.name=eureka-server
|
||||
|
||||
spring.cloud.config.uri=http://localhost:9101
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.mcommerce.eurekaserver;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class EurekaServerApplicationTests {
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue