* BAEL-1271 - initial commit

* BAEL-1271 - created an admin server and a client app that registers to

* BAEL-1271 - added security on admin server/on client actuator endpoints

* BAEL-1271 - configured mail notifications

* added unit test coverage

* added unit test coverage

* hipchat configuration
This commit is contained in:
Bogdan Stoean
2017-11-02 17:44:01 +02:00
committed by maibin
parent 6365159f68
commit 45997664ad
18 changed files with 601 additions and 0 deletions
@@ -0,0 +1,12 @@
package com.baeldung.springbootadminclient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootAdminClientApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootAdminClientApplication.class, args);
}
}
@@ -0,0 +1,16 @@
#basic auth creddentials
security.user.name=client
security.user.password=client
#configs to connect to a secured server
spring.boot.admin.url=http://localhost:8080
spring.boot.admin.username=admin
spring.boot.admin.password=admin
#configs to give secured server info
spring.boot.admin.client.metadata.user.name=${security.user.name}
spring.boot.admin.client.metadata.user.password=${security.user.password}
#app config
spring.application.name=spring-boot-admin-client
server.port=8081
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<jmxConfigurator />
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date [%thread] %-5level %logger{25} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>