This file contains hidden or 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
spring.main.lazy.initialization=true |
This file contains hidden or 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
Error: JMX connector server communication error: service:jmx:rmi://13529ed4a4a9:9999 | |
sun.management.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 9999; nested exception is: | |
java.net.BindException: Address already in use (Bind failed) | |
at sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:800) | |
at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:468) | |
at sun.management.Agent.startAgent(Agent.java:262) | |
at sun.management.Agent.startAgent(Agent.java:452) | |
Caused by: java.rmi.server.ExportException: Port already in use: 9999; nested exception is: | |
java.net.BindException: Address already in use (Bind failed) | |
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:346) |
This file contains hidden or 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
version: '3.7' | |
services: | |
# https://hub.docker.com/r/confluentinc/cp-zookeeper/tags | |
zookeeper: | |
image: confluentinc/cp-zookeeper:5.3.1 | |
container_name: zookeeper | |
hostname: zookeeper | |
ports: |
This file contains hidden or 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
{ | |
name: "http.client.requests", | |
description: "Timer of RestTemplate operation", | |
baseUnit: "seconds", | |
measurements: [ | |
{ | |
statistic: "COUNT", | |
value: 1 | |
}, | |
{ |
This file contains hidden or 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 io.stockgeeks.hello.world.api; | |
import org.springframework.boot.web.client.RestTemplateBuilder; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.client.RestTemplate; | |
@Configuration | |
public class RestTemplateConfiguration { |
This file contains hidden or 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 io.stockgeeks.hello.world.api; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.client.RestTemplate; | |
@RestController | |
@Slf4j | |
public class HelloWorldController { |
This file contains hidden or 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 io.stockgeeks.hello.world.api; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.client.RestTemplate; | |
@Configuration | |
public class RestTemplateConfiguration { | |
@Bean |
This file contains hidden or 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 io.stockgeeks.hello.world.api; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.client.RestTemplate; | |
@RestController | |
@Slf4j | |
public class HelloWorldController { |
This file contains hidden or 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
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00) | |
Maven home: /home/tim/Development/tools/maven/current | |
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-oracle/jre | |
Default locale: en_US, platform encoding: UTF-8 | |
OS name: "linux", version: "4.15.0-36-generic", arch: "amd64", family: "unix" | |
[DEBUG] Created new class realm maven.api | |
[DEBUG] Importing foreign packages into class realm maven.api | |
[DEBUG] Imported: javax.annotation.* < plexus.core | |
[DEBUG] Imported: javax.annotation.security.* < plexus.core | |
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core |
NewerOlder