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
6cb1208c
Commit
6cb1208c
authored
Dec 09, 2017
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add legacy trace conversion, update to current snapshot
parent
668d19c1
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
138 additions
and
346 deletions
+138
-346
eclipse-code-formatter.xml
eclipse-code-formatter.xml
+0
-295
pom.xml
...g-boot-admin-samples/spring-boot-admin-sample-war/pom.xml
+7
-4
SpringBootAdminApplication.java
...de/codecentric/boot/admin/SpringBootAdminApplication.java
+11
-0
application.yml
...-boot-admin-sample-war/src/main/resources/application.yml
+5
-9
pom.xml
spring-boot-admin-samples/spring-boot-admin-sample/pom.xml
+4
-0
application.yml
...ring-boot-admin-sample/src/main/resources/application.yml
+1
-5
pom.xml
spring-boot-admin-server/pom.xml
+9
-0
AdminServerProperties.java
...ntric/boot/admin/server/config/AdminServerProperties.java
+3
-3
Endpoint.java
...codecentric/boot/admin/server/domain/values/Endpoint.java
+1
-0
InstanceWebClient.java
...ntric/boot/admin/server/web/client/InstanceWebClient.java
+4
-1
LegacyEndpointConverters.java
...oot/admin/server/web/client/LegacyEndpointConverters.java
+21
-7
AbstractAdminApplicationTest.java
...ntric/boot/admin/server/AbstractAdminApplicationTest.java
+1
-1
AdminApplicationTest.java
...e/codecentric/boot/admin/server/AdminApplicationTest.java
+1
-1
InstanceWebClientTest.java
...c/boot/admin/server/web/client/InstanceWebClientTest.java
+3
-1
LegacyEndpointConvertersTest.java
...admin/server/web/client/LegacyEndpointConvertersTest.java
+16
-0
trace-expected.json
...ecentric/boot/admin/server/web/client/trace-expected.json
+17
-0
trace-legacy.json
...odecentric/boot/admin/server/web/client/trace-legacy.json
+15
-0
DefaultApplicationFactoryTest.java
...in/client/registration/DefaultApplicationFactoryTest.java
+13
-13
ServletApplicationFactoryTest.java
...in/client/registration/ServletApplicationFactoryTest.java
+6
-6
No files found.
eclipse-code-formatter.xml
deleted
100644 → 0
View file @
668d19c1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles
version=
"12"
>
<profile
kind=
"CodeFormatterProfile"
name=
"Spring Boot Admin Java Conventions"
version=
"12"
>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_ellipsis"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_after_imports"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_javadoc_comments"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indentation.size"
value=
"4"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.disabling_tag"
value=
"@formatter:off"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.continuation_indentation"
value=
"2"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_enum_constants"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_imports"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_after_package"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_binary_operator"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.indent_root_tags"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.enabling_tag"
value=
"@formatter:on"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.problem.enumIdentifier"
value=
"error"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_statements_compare_to_block"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.line_length"
value=
"100"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.use_on_off_tags"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_method_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_binary_expression"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_block"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_lambda_body"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.compact_else_if"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.problem.assertIdentifier"
value=
"error"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_binary_operator"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_unary_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_ellipsis"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_line_comments"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.align_type_members_on_columns"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_assignment"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_conditional_expression"
value=
"80"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_block_in_case"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_header"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode"
value=
"enabled"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_method_declaration"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.join_wrapped_lines"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_resources_in_try"
value=
"80"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.source"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.tabulation.size"
value=
"4"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_source_code"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_field"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer"
value=
"2"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_method"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.codegen.targetPlatform"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_switch"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_html"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_compact_if"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_empty_lines"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_unary_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_label"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_member_type"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_semicolon"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_block_comments"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_statements_compare_to_body"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_multiple_fields"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_array_initializer"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.wrap_before_binary_operator"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.compliance"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_enum_constant"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.brace_position_for_type_declaration"
value=
"end_of_line"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_package"
value=
"0"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.join_lines_in_comments"
value=
"true"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.indent_parameter_description"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.tabulation.char"
value=
"space"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_between_import_groups"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.lineSplit"
value=
"100"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch"
value=
"insert"
/>
</profile>
</profiles>
spring-boot-admin-samples/spring-boot-admin-sample-war/pom.xml
View file @
6cb1208c
...
@@ -13,8 +13,11 @@
...
@@ -13,8 +13,11 @@
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
de.codecentric
</groupId>
<groupId>
de.codecentric
</groupId>
...
@@ -24,10 +27,10 @@
...
@@ -24,10 +27,10 @@
<groupId>
de.codecentric
</groupId>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin-server
</artifactId>
<artifactId>
spring-boot-admin-server
</artifactId>
</dependency>
</dependency>
<
!--
dependency>
<dependency>
<groupId>
de.codecentric
</groupId>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin-server-ui
</artifactId>
<artifactId>
spring-boot-admin-server-ui
</artifactId>
</dependency
--
>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<finalName>
${project.artifactId}
</finalName>
<finalName>
${project.artifactId}
</finalName>
...
...
spring-boot-admin-samples/spring-boot-admin-sample-war/src/main/java/de/codecentric/boot/admin/SpringBootAdminApplication.java
View file @
6cb1208c
...
@@ -7,12 +7,23 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
...
@@ -7,12 +7,23 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
;
@Configuration
@Configuration
@EnableAutoConfiguration
@EnableAutoConfiguration
@EnableAdminServer
@EnableAdminServer
public
class
SpringBootAdminApplication
extends
SpringBootServletInitializer
{
public
class
SpringBootAdminApplication
extends
SpringBootServletInitializer
{
@Configuration
public
static
class
SecurityConfig
extends
WebSecurityConfigurerAdapter
{
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
authorizeRequests
().
anyRequest
().
permitAll
()
//
.
and
().
csrf
().
disable
();
}
}
@Override
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
;
return
application
;
...
...
spring-boot-admin-samples/spring-boot-admin-sample-war/src/main/resources/application.yml
View file @
6cb1208c
info
:
stage
:
test
spring
:
spring
:
application
:
application
:
name
:
spring-boot-admin-sample-war
name
:
spring-boot-admin-sample-war
boot
:
boot
:
admin
:
admin
:
client
:
url
:
http://localhost:8080
url
:
http://localhost:8080
cloud
:
config
:
enabled
:
false
endpoints
:
management
:
health
:
endpoints
:
sensitive
:
false
web
:
expose
:
"
*"
spring-boot-admin-samples/spring-boot-admin-sample/pom.xml
View file @
6cb1208c
...
@@ -43,6 +43,10 @@
...
@@ -43,6 +43,10 @@
<artifactId>
spring-boot-starter-security
</artifactId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-webflux
</artifactId>
</dependency>
<dependency>
<groupId>
de.codecentric
</groupId>
<groupId>
de.codecentric
</groupId>
<artifactId>
spring-boot-admin-starter-client
</artifactId>
<artifactId>
spring-boot-admin-starter-client
</artifactId>
</dependency>
</dependency>
...
...
spring-boot-admin-samples/spring-boot-admin-sample/src/main/resources/application.yml
View file @
6cb1208c
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
info
:
info
:
scm-url
:
"
@scm.url@"
scm-url
:
"
@scm.url@"
build-url
:
"
http://travis-ci.org/@env.TRAVIS_REPO_SLUG@/builds/@env.TRAVIS_BUILD_ID@"
build-url
:
"
http://travis-ci.org/@env.TRAVIS_REPO_SLUG@/builds/@env.TRAVIS_BUILD_ID@"
stage
:
test
logging
:
logging
:
file
:
"
target/boot-admin-sample.log"
file
:
"
target/boot-admin-sample.log"
...
@@ -10,14 +9,11 @@ logging:
...
@@ -10,14 +9,11 @@ logging:
management
:
management
:
endpoints
:
endpoints
:
web
:
web
:
base-path
:
"
/actuator"
expose
:
"
*"
expose
:
"
*"
jolokia
:
enabled
:
true
spring
:
spring
:
application
:
application
:
name
:
"
@pom.artifactId@"
name
:
spring-boot-admin-sample
boot
:
boot
:
admin
:
admin
:
client
:
client
:
...
...
spring-boot-admin-server/pom.xml
View file @
6cb1208c
...
@@ -36,6 +36,15 @@
...
@@ -36,6 +36,15 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerProperties.java
View file @
6cb1208c
...
@@ -29,12 +29,12 @@ public class AdminServerProperties {
...
@@ -29,12 +29,12 @@ public class AdminServerProperties {
private
MonitorProperties
monitor
=
new
MonitorProperties
();
private
MonitorProperties
monitor
=
new
MonitorProperties
();
/**
/**
* For Spring Boot 2.x applications the endpoints should be discovered automatically.
* For Spring Boot 2.x applications the endpoints should be discovered automatically
using the actuator links
.
* For Spring Boot 1.x applications SBA probes for the specified endpoints using an OPTIONS request.
* For Spring Boot 1.x applications SBA probes for the specified endpoints using an OPTIONS request.
* If the path differs from the id you can specify this as id:path (e.g. health:ping).
* If the path differs from the id you can specify this as id:path (e.g. health:ping).
*/
*/
private
String
[]
probedEndpoints
=
{
"health"
,
"env"
,
"metrics"
,
"trace"
,
"
dump"
,
"jolokia"
,
"info"
,
"logfile
"
,
private
String
[]
probedEndpoints
=
{
"health"
,
"env"
,
"metrics"
,
"trace"
,
"
threaddump:dump"
,
"jolokia"
,
"info
"
,
"refresh"
,
"flyway"
,
"liquibase"
,
"heapdump"
,
"loggers"
,
"auditevents"
};
"
logfile"
,
"
refresh"
,
"flyway"
,
"liquibase"
,
"heapdump"
,
"loggers"
,
"auditevents"
};
public
void
setContextPath
(
String
pathPrefix
)
{
public
void
setContextPath
(
String
pathPrefix
)
{
if
(!
pathPrefix
.
startsWith
(
"/"
)
||
pathPrefix
.
endsWith
(
"/"
))
{
if
(!
pathPrefix
.
startsWith
(
"/"
)
||
pathPrefix
.
endsWith
(
"/"
))
{
...
...
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/domain/values/Endpoint.java
View file @
6cb1208c
...
@@ -24,6 +24,7 @@ public class Endpoint implements Serializable {
...
@@ -24,6 +24,7 @@ public class Endpoint implements Serializable {
public
static
final
String
INFO
=
"info"
;
public
static
final
String
INFO
=
"info"
;
public
static
final
String
HEALTH
=
"health"
;
public
static
final
String
HEALTH
=
"health"
;
public
static
final
String
ENV
=
"env"
;
public
static
final
String
ENV
=
"env"
;
public
static
final
String
TRACE
=
"trace"
;
private
final
String
id
;
private
final
String
id
;
private
final
String
url
;
private
final
String
url
;
...
...
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/client/InstanceWebClient.java
View file @
6cb1208c
...
@@ -22,6 +22,7 @@ import io.netty.handler.timeout.ReadTimeoutHandler;
...
@@ -22,6 +22,7 @@ import io.netty.handler.timeout.ReadTimeoutHandler;
import
reactor.core.publisher.Mono
;
import
reactor.core.publisher.Mono
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
org.springframework.boot.actuate.endpoint.http.ActuatorMediaType
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.client.reactive.ReactorClientHttpConnector
;
import
org.springframework.http.client.reactive.ReactorClientHttpConnector
;
...
@@ -44,6 +45,7 @@ public class InstanceWebClient {
...
@@ -44,6 +45,7 @@ public class InstanceWebClient {
filters
.
add
(
InstanceFilterFunctions
.
rewriteEndpointUrl
());
filters
.
add
(
InstanceFilterFunctions
.
rewriteEndpointUrl
());
filters
.
add
(
InstanceFilterFunctions
.
convertLegacyEndpoint
(
LegacyEndpointConverters
.
health
()));
filters
.
add
(
InstanceFilterFunctions
.
convertLegacyEndpoint
(
LegacyEndpointConverters
.
health
()));
filters
.
add
(
InstanceFilterFunctions
.
convertLegacyEndpoint
(
LegacyEndpointConverters
.
env
()));
filters
.
add
(
InstanceFilterFunctions
.
convertLegacyEndpoint
(
LegacyEndpointConverters
.
env
()));
filters
.
add
(
InstanceFilterFunctions
.
convertLegacyEndpoint
(
LegacyEndpointConverters
.
trace
()));
}).
build
();
}).
build
();
}
}
...
@@ -68,7 +70,8 @@ public class InstanceWebClient {
...
@@ -68,7 +70,8 @@ public class InstanceWebClient {
}));
}));
return
WebClient
.
builder
()
return
WebClient
.
builder
()
.
clientConnector
(
connector
)
.
clientConnector
(
connector
)
.
defaultHeader
(
HttpHeaders
.
ACCEPT
,
MediaType
.
APPLICATION_JSON_VALUE
)
.
defaultHeader
(
HttpHeaders
.
ACCEPT
,
ActuatorMediaType
.
V2_JSON
,
ActuatorMediaType
.
V1_JSON
,
MediaType
.
APPLICATION_JSON_VALUE
)
.
build
();
.
build
();
}
}
}
}
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/client/LegacyEndpointConverters.java
View file @
6cb1208c
...
@@ -35,25 +35,36 @@ import org.springframework.http.codec.json.Jackson2JsonEncoder;
...
@@ -35,25 +35,36 @@ import org.springframework.http.codec.json.Jackson2JsonEncoder;
import
static
java
.
util
.
Collections
.
singletonMap
;
import
static
java
.
util
.
Collections
.
singletonMap
;
public
class
LegacyEndpointConverters
{
public
class
LegacyEndpointConverters
{
private
static
final
ParameterizedTypeReference
<
Map
<
String
,
Object
>>
RESPONSE_TYPE
=
new
ParameterizedTypeReference
<
Map
<
String
,
Object
>>()
{
private
static
final
ParameterizedTypeReference
<
Map
<
String
,
Object
>>
RESPONSE_TYPE_MAP
=
new
ParameterizedTypeReference
<
Map
<
String
,
Object
>>()
{
};
private
static
final
ParameterizedTypeReference
<
List
<
Object
>>
RESPONSE_TYPE_LIST
=
new
ParameterizedTypeReference
<
List
<
Object
>>()
{
};
};
private
static
final
Jackson2JsonDecoder
DECODER
=
new
Jackson2JsonDecoder
();
private
static
final
Jackson2JsonDecoder
DECODER
=
new
Jackson2JsonDecoder
();
private
static
final
Jackson2JsonEncoder
ENCODER
=
new
Jackson2JsonEncoder
();
private
static
final
Jackson2JsonEncoder
ENCODER
=
new
Jackson2JsonEncoder
();
public
static
LegacyEndpointConverter
health
()
{
public
static
LegacyEndpointConverter
health
()
{
return
new
LegacyEndpointConverter
(
Endpoint
.
HEALTH
,
convertMapUsing
(
LegacyEndpointConverters:
:
convertHealth
));
return
new
LegacyEndpointConverter
(
Endpoint
.
HEALTH
,
convertUsing
(
RESPONSE_TYPE_MAP
,
RESPONSE_TYPE_MAP
,
LegacyEndpointConverters:
:
convertHealth
));
}
}
public
static
LegacyEndpointConverter
env
()
{
public
static
LegacyEndpointConverter
env
()
{
return
new
LegacyEndpointConverter
(
Endpoint
.
ENV
,
convertMapUsing
(
LegacyEndpointConverters:
:
convertEnv
));
return
new
LegacyEndpointConverter
(
Endpoint
.
ENV
,
convertUsing
(
RESPONSE_TYPE_MAP
,
RESPONSE_TYPE_MAP
,
LegacyEndpointConverters:
:
convertEnv
));
}
public
static
LegacyEndpointConverter
trace
()
{
return
new
LegacyEndpointConverter
(
Endpoint
.
TRACE
,
convertUsing
(
RESPONSE_TYPE_LIST
,
RESPONSE_TYPE_MAP
,
LegacyEndpointConverters:
:
convertTrace
));
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
private
static
Function
<
Flux
<
DataBuffer
>,
Flux
<
DataBuffer
>>
convertMapUsing
(
Function
<
Map
<
String
,
Object
>,
Map
<
String
,
Object
>>
converterFn
)
{
private
static
<
S
,
T
>
Function
<
Flux
<
DataBuffer
>,
Flux
<
DataBuffer
>>
convertUsing
(
ParameterizedTypeReference
<
S
>
sourceType
,
return
input
->
DECODER
.
decodeToMono
(
input
,
ResolvableType
.
forType
(
RESPONSE_TYPE
),
null
,
null
)
ParameterizedTypeReference
<
T
>
targetType
,
.
map
(
body
->
converterFn
.
apply
((
Map
<
String
,
Object
>)
body
))
Function
<
S
,
T
>
converterFn
)
{
return
input
->
DECODER
.
decodeToMono
(
input
,
ResolvableType
.
forType
(
sourceType
),
null
,
null
)
.
map
(
body
->
converterFn
.
apply
((
S
)
body
))
.
flatMapMany
(
output
->
ENCODER
.
encode
(
Mono
.
just
(
output
),
new
DefaultDataBufferFactory
(),
.
flatMapMany
(
output
->
ENCODER
.
encode
(
Mono
.
just
(
output
),
new
DefaultDataBufferFactory
(),
ResolvableType
.
forType
(
RESPONSE_TYPE
),
null
,
null
));
ResolvableType
.
forType
(
targetType
),
null
,
null
));
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
@@ -104,4 +115,7 @@ public class LegacyEndpointConverters {
...
@@ -104,4 +115,7 @@ public class LegacyEndpointConverters {
return
converted
;
return
converted
;
}
}
private
static
Map
<
String
,
Object
>
convertTrace
(
List
<
Object
>
traces
)
{
return
singletonMap
(
"traces"
,
traces
);
}
}
}
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/AbstractAdminApplicationTest.java
View file @
6cb1208c
...
@@ -132,7 +132,7 @@ public abstract class AbstractAdminApplicationTest {
...
@@ -132,7 +132,7 @@ public abstract class AbstractAdminApplicationTest {
private
Registration
createRegistration
()
{
private
Registration
createRegistration
()
{
return
Registration
.
builder
()
return
Registration
.
builder
()
.
name
(
"Test-Instance"
)
.
name
(
"Test-Instance"
)
.
healthUrl
(
"http://localhost:"
+
port
+
"/mgmt/
status
"
)
.
healthUrl
(
"http://localhost:"
+
port
+
"/mgmt/
health
"
)
.
managementUrl
(
"http://localhost:"
+
port
+
"/mgmt"
)
.
managementUrl
(
"http://localhost:"
+
port
+
"/mgmt"
)
.
serviceUrl
(
"http://localhost:"
+
port
)
.
serviceUrl
(
"http://localhost:"
+
port
)
.
build
();
.
build
();
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/AdminApplicationTest.java
View file @
6cb1208c
...
@@ -54,7 +54,7 @@ public class AdminApplicationTest extends AbstractAdminApplicationTest {
...
@@ -54,7 +54,7 @@ public class AdminApplicationTest extends AbstractAdminApplicationTest {
public
static
class
TestAdminApplication
{
public
static
class
TestAdminApplication
{
@Bean
@Bean
SecurityWebFilterChain
securityWebFilterChain
(
ServerHttpSecurity
http
)
{
public
SecurityWebFilterChain
securityWebFilterChain
(
ServerHttpSecurity
http
)
{
return
http
.
authorizeExchange
().
anyExchange
().
permitAll
()
//
return
http
.
authorizeExchange
().
anyExchange
().
permitAll
()
//
.
and
().
csrf
().
disable
()
//
.
and
().
csrf
().
disable
()
//
.
build
();
.
build
();
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/client/InstanceWebClientTest.java
View file @
6cb1208c
...
@@ -70,7 +70,9 @@ public class InstanceWebClientTest {
...
@@ -70,7 +70,9 @@ public class InstanceWebClientTest {
StepVerifier
.
create
(
exchange
).
expectNextCount
(
1
).
verifyComplete
();
StepVerifier
.
create
(
exchange
).
expectNextCount
(
1
).
verifyComplete
();
wireMock
.
verify
(
1
,
wireMock
.
verify
(
1
,
getRequestedFor
(
urlEqualTo
(
"/status"
)).
withHeader
(
ACCEPT
,
equalTo
(
MediaType
.
APPLICATION_JSON_VALUE
)));
getRequestedFor
(
urlEqualTo
(
"/status"
)).
withHeader
(
ACCEPT
,
equalTo
(
MediaType
.
APPLICATION_JSON_VALUE
))
.
withHeader
(
ACCEPT
,
equalTo
(
ActuatorMediaType
.
V1_JSON
))
.
withHeader
(
ACCEPT
,
equalTo
(
ActuatorMediaType
.
V2_JSON
)));
}
}
@Test
@Test
...
...
spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/web/client/LegacyEndpointConvertersTest.java
View file @
6cb1208c
...
@@ -71,6 +71,22 @@ public class LegacyEndpointConvertersTest {
...
@@ -71,6 +71,22 @@ public class LegacyEndpointConvertersTest {
.
verifyComplete
();
.
verifyComplete
();
}
}
@Test
public
void
should_convert_trace
()
{
LegacyEndpointConverter
converter
=
LegacyEndpointConverters
.
trace
();
assertThat
(
converter
.
canConvert
(
"trace"
)).
isTrue
();
assertThat
(
converter
.
canConvert
(
"foo"
)).
isFalse
();
Flux
<
DataBuffer
>
legacyInput
=
this
.
read
(
"trace-legacy.json"
);
Flux
<
Object
>
converted
=
converter
.
convert
(
legacyInput
).
transform
(
this
::
unmarshal
);
Flux
<
Object
>
expected
=
this
.
read
(
"trace-expected.json"
).
transform
(
this
::
unmarshal
);
StepVerifier
.
create
(
Flux
.
zip
(
converted
,
expected
))
.
assertNext
(
t
->
assertThat
(
t
.
getT1
()).
isEqualTo
(
t
.
getT2
()))
.
verifyComplete
();
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
private
Flux
<
Object
>
unmarshal
(
Flux
<
DataBuffer
>
buffer
)
{
private
Flux
<
Object
>
unmarshal
(
Flux
<
DataBuffer
>
buffer
)
{
return
decoder
.
decode
(
buffer
,
type
,
null
,
null
);
return
decoder
.
decode
(
buffer
,
type
,
null
,
null
);
...
...
spring-boot-admin-server/src/test/resources/de/codecentric/boot/admin/server/web/client/trace-expected.json
0 → 100644
View file @
6cb1208c
{
"traces"
:
[
{
"timestamp"
:
"15610000"
,
"info"
:
{
"status"
:
200
}
},
{
"timestamp"
:
"15610001"
,
"info"
:
{
"status"
:
200
}
}
]
}
\ No newline at end of file
spring-boot-admin-server/src/test/resources/de/codecentric/boot/admin/server/web/client/trace-legacy.json
0 → 100644
View file @
6cb1208c
[
{
"timestamp"
:
"15610000"
,
"info"
:
{
"status"
:
200
}
},
{
"timestamp"
:
"15610001"
,
"info"
:
{
"status"
:
200
}
}
]
\ No newline at end of file
spring-boot-admin-starter-client/src/test/java/de/codecentric/boot/admin/client/registration/DefaultApplicationFactoryTest.java
View file @
6cb1208c
...
@@ -65,12 +65,12 @@ public class DefaultApplicationFactoryTest {
...
@@ -65,12 +65,12 @@ public class DefaultApplicationFactoryTest {
@Test
@Test
public
void
test_default
()
{
public
void
test_default
()
{
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/health"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/health"
);
publishApplicationReadyEvent
(
factory
,
8080
,
null
);
publishApplicationReadyEvent
(
factory
,
8080
,
null
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/a
pplication
/health"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/a
ctuator
/health"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/"
);
}
}
...
@@ -78,12 +78,12 @@ public class DefaultApplicationFactoryTest {
...
@@ -78,12 +78,12 @@ public class DefaultApplicationFactoryTest {
public
void
test_ssl
()
{
public
void
test_ssl
()
{
server
.
setSsl
(
new
Ssl
());
server
.
setSsl
(
new
Ssl
());
server
.
getSsl
().
setEnabled
(
true
);
server
.
getSsl
().
setEnabled
(
true
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/health"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/health"
);
publishApplicationReadyEvent
(
factory
,
8080
,
null
);
publishApplicationReadyEvent
(
factory
,
8080
,
null
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/a
pplication
/health"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/a
ctuator
/health"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":8080/"
);
}
}
...
@@ -91,12 +91,12 @@ public class DefaultApplicationFactoryTest {
...
@@ -91,12 +91,12 @@ public class DefaultApplicationFactoryTest {
public
void
test_ssl_management
()
{
public
void
test_ssl_management
()
{
management
.
setSsl
(
new
Ssl
());
management
.
setSsl
(
new
Ssl
());
management
.
getSsl
().
setEnabled
(
true
);
management
.
getSsl
().
setEnabled
(
true
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/alive"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/alive"
);
publishApplicationReadyEvent
(
factory
,
8080
,
9090
);
publishApplicationReadyEvent
(
factory
,
8080
,
9090
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":9090/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":9090/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":9090/a
pplication
/alive"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"https://"
+
getHostname
()
+
":9090/a
ctuator
/alive"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":8080/"
);
}
}
...
@@ -117,7 +117,7 @@ public class DefaultApplicationFactoryTest {
...
@@ -117,7 +117,7 @@ public class DefaultApplicationFactoryTest {
publishApplicationReadyEvent
(
factory
,
8080
,
8081
);
publishApplicationReadyEvent
(
factory
,
8080
,
8081
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
matches
(
"http://\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}:8081/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
matches
(
"http://\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}:8081/a
ctuator
"
);
}
}
@Test
@Test
...
@@ -125,12 +125,12 @@ public class DefaultApplicationFactoryTest {
...
@@ -125,12 +125,12 @@ public class DefaultApplicationFactoryTest {
instanceProperties
.
setPreferIp
(
true
);
instanceProperties
.
setPreferIp
(
true
);
server
.
setAddress
(
InetAddress
.
getByName
(
"127.0.0.1"
));
server
.
setAddress
(
InetAddress
.
getByName
(
"127.0.0.1"
));
management
.
setAddress
(
InetAddress
.
getByName
(
"127.0.0.2"
));
management
.
setAddress
(
InetAddress
.
getByName
(
"127.0.0.2"
));
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/health"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/health"
);
publishApplicationReadyEvent
(
factory
,
8080
,
8081
);
publishApplicationReadyEvent
(
factory
,
8080
,
8081
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://127.0.0.2:8081/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://127.0.0.2:8081/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://127.0.0.2:8081/a
pplication
/health"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://127.0.0.2:8081/a
ctuator
/health"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://127.0.0.1:8080/"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://127.0.0.1:8080/"
);
}
}
...
...
spring-boot-admin-starter-client/src/test/java/de/codecentric/boot/admin/client/registration/ServletApplicationFactoryTest.java
View file @
6cb1208c
...
@@ -79,12 +79,12 @@ public class ServletApplicationFactoryTest {
...
@@ -79,12 +79,12 @@ public class ServletApplicationFactoryTest {
@Test
@Test
public
void
test_contextPath
()
{
public
void
test_contextPath
()
{
servletContext
.
setContextPath
(
"app"
);
servletContext
.
setContextPath
(
"app"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/health"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/health"
);
publishApplicationReadyEvent
(
factory
,
80
,
null
);
publishApplicationReadyEvent
(
factory
,
80
,
null
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app/a
pplication
/health"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app/a
ctuator
/health"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/app"
);
}
}
...
@@ -92,12 +92,12 @@ public class ServletApplicationFactoryTest {
...
@@ -92,12 +92,12 @@ public class ServletApplicationFactoryTest {
public
void
test_servletPath
()
{
public
void
test_servletPath
()
{
server
.
getServlet
().
setPath
(
"app"
);
server
.
getServlet
().
setPath
(
"app"
);
servletContext
.
setContextPath
(
"srv"
);
servletContext
.
setContextPath
(
"srv"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
pplication
/health"
);
when
(
endpointPathProvider
.
getPath
(
"health"
)).
thenReturn
(
"/a
ctuator
/health"
);
publishApplicationReadyEvent
(
factory
,
80
,
null
);
publishApplicationReadyEvent
(
factory
,
80
,
null
);
Application
app
=
factory
.
createApplication
();
Application
app
=
factory
.
createApplication
();
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv/app/a
pplication
"
);
assertThat
(
app
.
getManagementUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv/app/a
ctuator
"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv/app/a
pplication
/health"
);
assertThat
(
app
.
getHealthUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv/app/a
ctuator
/health"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv"
);
assertThat
(
app
.
getServiceUrl
()).
isEqualTo
(
"http://"
+
getHostname
()
+
":80/srv"
);
}
}
...
...
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