@@ -18,9 +18,44 @@ This application provides a simple GUI to administrate Spring Boot applications
...
@@ -18,9 +18,44 @@ This application provides a simple GUI to administrate Spring Boot applications
</ul>
</ul>
</ul>
</ul>
#### Server application
Add the following dependency to your pom.xml.
```
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<version>1.0.2</version>
</dependency>
```
Create the Spring Boot Admin Server with only one single Annotation.
```
@Configuration
@EnableAutoConfiguration
@EnableAdminServer
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
```
See also the [example project](https://github.com/codecentric/spring-boot-admin/spring-boot-admin-example) in this repository.
#### Client applications
#### Client applications
Each application that want to register itself to the admin application has to include the [spring-boot-starter-admin-client](https://github.com/codecentric/spring-boot-starter-admin-client"GitHub project") as dependency. This starter JAR includes some [AutoConfiguration](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-auto-configuration"Spring Boot docu") features that includes registering tasks, controller, etc.
Each application that want to register itself to the admin application has to include the [spring-boot-starter-admin-client](https://github.com/codecentric/spring-boot-admin/spring-boot-starter-admin-client"GitHub project") as dependency. This starter JAR includes some [AutoConfiguration](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-auto-configuration"Spring Boot docu") features that includes registering tasks, controller, etc.