Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
6de3723a
Commit
6de3723a
authored
Jul 04, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new spring-boot-admin client
parent
fdb85b9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
pom.xml
pom.xml
+1
-1
RegistryController.java
...codecentric/boot/admin/controller/RegistryController.java
+2
-2
ApplicationRegistry.java
...e/codecentric/boot/admin/service/ApplicationRegistry.java
+2
-2
application.properties
src/main/resources/application.properties
+4
-2
No files found.
pom.xml
View file @
6de3723a
...
...
@@ -15,7 +15,7 @@
<dependency>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-starter-admin-client
</artifactId>
<version>
1.0.0.RC
1
</version>
<version>
1.0.0.RC
3
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
src/main/java/de/codecentric/boot/admin/controller/RegistryController.java
View file @
6de3723a
...
...
@@ -28,9 +28,9 @@ public class RegistryController {
@RequestMapping
(
value
=
"/api/applications"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
void
register
(
@RequestBody
Application
app
)
{
public
Application
register
(
@RequestBody
Application
app
)
{
LOGGER
.
info
(
"Register application with ID '{}' and URL '{}'"
,
app
.
getId
(),
app
.
getUrl
());
registry
.
register
(
app
);
re
turn
re
gistry
.
register
(
app
);
}
@RequestMapping
(
value
=
"/api/application/{id}"
,
method
=
RequestMethod
.
GET
)
...
...
src/main/java/de/codecentric/boot/admin/service/ApplicationRegistry.java
View file @
6de3723a
...
...
@@ -24,11 +24,11 @@ public class ApplicationRegistry {
* @param app
* The Application.
*/
public
void
register
(
Application
app
)
{
public
Application
register
(
Application
app
)
{
Validate
.
notNull
(
app
,
"Application must not be null"
);
Validate
.
notNull
(
app
.
getId
(),
"Application ID must not be null"
);
Validate
.
notNull
(
app
.
getUrl
(),
"Application URL must not be null"
);
registry
.
put
(
app
.
getId
(),
app
);
re
turn
re
gistry
.
put
(
app
.
getId
(),
app
);
}
/**
...
...
src/main/resources/application.properties
View file @
6de3723a
spring.resources.cachePeriod
=
3600
server.port
=
8080
info.id
=
spring-boot-admin
info.version
=
1.0.0-SNAPSHOT
\ No newline at end of file
info.version
=
1.0.0-SNAPSHOT
spring.boot.admin.url
=
http://localhost:8080
logging.file
=
/tmp/log.log
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment