This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-06-27 15:21:45.029 INFO [sz-consumer-service,6cb9e5c7261f9d64,6cb9e5c7261f9d64,false] 3272 --- [nio-8081-exec-8] c.e.s.ConsumerController : Logging GET request to /greet for class com.example.szconsumerservice.ConsumerController |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
humbert :: ~ » http :8081/greet | |
HTTP/1.1 200 | |
Content-Length: 12 | |
Content-Type: text/plain;charset=UTF-8 | |
Date: Tue, 27 Jun 2017 20:19:00 GMT | |
Hello there! | |
humbert :: ~ » |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.szproviderservice; | |
import lombok.extern.java.Log; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@SpringBootApplication | |
public class SzProviderServiceApplication { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.szconsumerservice; | |
import lombok.extern.java.Log; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.client.RestOperations; | |
import org.springframework.web.client.RestTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>org.springframework.cloud</groupId> | |
<artifactId>spring-cloud-starter-sleuth</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
compile('org.springframework.cloud:spring-cloud-starter-sleuth') | |
compile('org.springframework.boot:spring-boot-starter-web') | |
compileOnly('org.projectlombok:lombok') | |
testCompile('org.springframework.boot:spring-boot-starter-test') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>com.fasterxml.jackson.dataformat</groupId> | |
<artifactId>jackson-dataformat-xml</artifactId> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
humbert :: ~ » http :8080 'Accept:application/xml' | |
HTTP/1.1 200 | |
Content-Type: application/xml;charset=UTF-8 | |
Date: Wed, 21 Jun 2017 07:42:36 GMT | |
Transfer-Encoding: chunked | |
<Map><myKey>myValue</myKey></Map> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
humbert :: ~ » http :8080 | |
HTTP/1.1 200 | |
Content-Type: application/json;charset=UTF-8 | |
Date: Wed, 21 Jun 2017 07:42:27 GMT | |
Transfer-Encoding: chunked | |
{ | |
"myKey": "myValue" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>build-info</goal> | |
</goals> |