You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 29, 2018. It is now read-only.
Create the Spring Boot Admin server with only one single annotation.
45
-
```java
46
-
@Configuration
47
-
@EnableAutoConfiguration
48
-
@EnableAdminServer
49
-
publicclassApplication {
50
-
publicstaticvoidmain(String[] args) {
51
-
SpringApplication.run(Application.class, args);
52
-
}
53
-
}
54
-
```
55
-
56
-
See also the [example project](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample) in this repository.
57
-
58
-
For configuring hazelcast support see [spring-boot-admin-server](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-server/README.md) or [hazelcast-example project](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample-hazelcast)
59
-
60
-
#### Register / discover client applications
61
-
To get all your boot applications shown in spring boot admin you have two choices:
62
-
63
-
1) either you include the spring-boot-admin-starter-client into your applications
64
-
65
-
or
66
-
67
-
2) you add a DiscoveryClient (e.g. Eureka) to your spring boot admin server.
68
-
69
-
**Note:** If you don't include the spring-boot-admin-starter-client the logfile won't be available with spring boot 1.2.x, due to the fact that the logfile endpoint won't be exposed.
70
-
71
-
##### Register client applications via spring-boot-admin-starter-client
72
-
Each application that want to register itself to the admin application has to include the [spring-boot-admin-starter-client](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-starter-client) 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 documentation") features that includes registering tasks, controller, etc.
Inside your configuration (e.g. application.properties) you also have to define the URL of the Spring Boot Admin server, e.g.
81
-
```
82
-
spring.boot.admin.url=http://localhost:8080
83
-
```
84
-
For all configuration options see [spring-boot-admin-starter-client](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-starter-client/README.md)
85
-
86
-
##### Discover client applications via DiscoveryClient
87
-
Just add spring-clouds ``@EnableDiscoveryClient`` annotation and include an appropriate implementation (e.g. Eureka) to your classpath.
See the sample [discovery sample project](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample-discovery)
30
+
## Getting Started
108
31
109
-
#### Mail notification on status change
32
+
[A quick guide](http://codecentric.github.io/spring-boot-admin/1.3.0/#getting-started) to get started can be found in our docs.
110
33
111
-
Configure a JavaMailSender using spring-boot-starter-mail and set a recipient:
For all configuration options see [spring-boot-admin-server](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-server/README.md)
125
-
126
-
### Snapshot builds
127
-
You can access snapshot builds from the sonatype repository:
0 commit comments