yasaka
7 years ago
6 changed files with 39 additions and 4 deletions
@ -0,0 +1,14 @@ |
|||
package com.trgis.sb2sc.controller; |
|||
|
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import reactor.core.publisher.Mono; |
|||
|
|||
@RestController |
|||
public class IndexController { |
|||
|
|||
@GetMapping("/helloworld") |
|||
public Mono<String> sayHelloWorld() { |
|||
return Mono.just("Hello World SC"); |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
eureka: |
|||
client: |
|||
service-url: |
|||
defaultZone: http://root:booszy@localhost:8761/eureka/ |
|||
instance: |
|||
prefer-ip-address: true |
|||
instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}} |
|||
appname: sc-provider |
|||
|
|||
spring: |
|||
application: |
|||
name: sc-provider |
|||
cloud: |
|||
config: |
|||
discovery: |
|||
enabled: true |
|||
service-id: springcloud-config-server |
|||
fail-fast: true |
|||
username: root |
|||
password: booszy |
|||
profile: csdn |
|||
|
@ -1,2 +1,2 @@ |
|||
rootProject.name = 'sb2sc' |
|||
include('sc-eureka','sc-config') |
|||
include('sc-eureka','sc-config','sc-provider') |
Loading…
Reference in new issue