Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
12f0d4d9
Commit
12f0d4d9
authored
Aug 06, 2013
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ops package to actuate
parent
e967c2d5
Changes
87
Hide whitespace changes
Inline
Side-by-side
Showing
87 changed files
with
242 additions
and
242 deletions
+242
-242
AuditEvent.java
...va/org/springframework/boot/actuate/audit/AuditEvent.java
+1
-1
AuditEventRepository.java
...ingframework/boot/actuate/audit/AuditEventRepository.java
+1
-1
InMemoryAuditEventRepository.java
...work/boot/actuate/audit/InMemoryAuditEventRepository.java
+1
-1
AuditApplicationEvent.java
...rk/boot/actuate/audit/listener/AuditApplicationEvent.java
+2
-2
AuditListener.java
...gframework/boot/actuate/audit/listener/AuditListener.java
+3
-3
AuditAutoConfiguration.java
...rk/boot/actuate/autoconfigure/AuditAutoConfiguration.java
+7
-7
EndpointAutoConfiguration.java
...boot/actuate/autoconfigure/EndpointAutoConfiguration.java
+18
-18
EndpointWebMvcAutoConfiguration.java
...ctuate/autoconfigure/EndpointWebMvcAutoConfiguration.java
+5
-5
EndpointWebMvcChildContextConfiguration.java
...utoconfigure/EndpointWebMvcChildContextConfiguration.java
+4
-4
ErrorMvcAutoConfiguration.java
...boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java
+3
-3
ManagementServerPropertiesAutoConfiguration.java
...onfigure/ManagementServerPropertiesAutoConfiguration.java
+2
-2
MetricFilterAutoConfiguration.java
.../actuate/autoconfigure/MetricFilterAutoConfiguration.java
+3
-3
MetricRepositoryAutoConfiguration.java
...uate/autoconfigure/MetricRepositoryAutoConfiguration.java
+7
-7
SecurityAutoConfiguration.java
...boot/actuate/autoconfigure/SecurityAutoConfiguration.java
+5
-5
TraceRepositoryAutoConfiguration.java
...tuate/autoconfigure/TraceRepositoryAutoConfiguration.java
+3
-3
TraceWebFilterAutoConfiguration.java
...ctuate/autoconfigure/TraceWebFilterAutoConfiguration.java
+3
-3
AbstractEndpoint.java
...ringframework/boot/actuate/endpoint/AbstractEndpoint.java
+1
-1
ActionEndpoint.java
...springframework/boot/actuate/endpoint/ActionEndpoint.java
+1
-1
BeansEndpoint.java
.../springframework/boot/actuate/endpoint/BeansEndpoint.java
+1
-1
DumpEndpoint.java
...g/springframework/boot/actuate/endpoint/DumpEndpoint.java
+1
-1
Endpoint.java
...a/org/springframework/boot/actuate/endpoint/Endpoint.java
+1
-1
EnvironmentEndpoint.java
...gframework/boot/actuate/endpoint/EnvironmentEndpoint.java
+1
-1
HealthEndpoint.java
...springframework/boot/actuate/endpoint/HealthEndpoint.java
+2
-2
InfoEndpoint.java
...g/springframework/boot/actuate/endpoint/InfoEndpoint.java
+1
-1
MetricsEndpoint.java
...pringframework/boot/actuate/endpoint/MetricsEndpoint.java
+2
-2
PublicMetrics.java
.../springframework/boot/actuate/endpoint/PublicMetrics.java
+2
-2
ShutdownEndpoint.java
...ringframework/boot/actuate/endpoint/ShutdownEndpoint.java
+2
-2
TraceEndpoint.java
.../springframework/boot/actuate/endpoint/TraceEndpoint.java
+3
-3
VanillaPublicMetrics.java
...framework/boot/actuate/endpoint/VanillaPublicMetrics.java
+3
-3
EndpointHandlerAdapter.java
...ork/boot/actuate/endpoint/mvc/EndpointHandlerAdapter.java
+2
-2
EndpointHandlerMapping.java
...ork/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java
+3
-3
HealthIndicator.java
.../springframework/boot/actuate/health/HealthIndicator.java
+1
-1
VanillaHealthIndicator.java
...framework/boot/actuate/health/VanillaHealthIndicator.java
+1
-1
CounterService.java
.../springframework/boot/actuate/metrics/CounterService.java
+1
-1
DefaultCounterService.java
...framework/boot/actuate/metrics/DefaultCounterService.java
+1
-1
DefaultGaugeService.java
...ngframework/boot/actuate/metrics/DefaultGaugeService.java
+1
-1
GaugeService.java
...rg/springframework/boot/actuate/metrics/GaugeService.java
+1
-1
InMemoryMetricRepository.java
...mework/boot/actuate/metrics/InMemoryMetricRepository.java
+1
-1
Measurement.java
...org/springframework/boot/actuate/metrics/Measurement.java
+1
-1
Metric.java
...java/org/springframework/boot/actuate/metrics/Metric.java
+1
-1
MetricRepository.java
...pringframework/boot/actuate/metrics/MetricRepository.java
+1
-1
ManagementServerProperties.java
...k/boot/actuate/properties/ManagementServerProperties.java
+1
-1
SecurityProperties.java
...framework/boot/actuate/properties/SecurityProperties.java
+1
-1
AuthenticationAuditListener.java
...rk/boot/actuate/security/AuthenticationAuditListener.java
+3
-3
AuthorizationAuditListener.java
...ork/boot/actuate/security/AuthorizationAuditListener.java
+3
-3
InMemoryTraceRepository.java
...framework/boot/actuate/trace/InMemoryTraceRepository.java
+1
-1
Trace.java
...in/java/org/springframework/boot/actuate/trace/Trace.java
+1
-1
TraceRepository.java
...g/springframework/boot/actuate/trace/TraceRepository.java
+1
-1
WebRequestTraceFilter.java
...ngframework/boot/actuate/trace/WebRequestTraceFilter.java
+1
-1
BasicErrorController.java
...pringframework/boot/actuate/web/BasicErrorController.java
+1
-1
ErrorController.java
...org/springframework/boot/actuate/web/ErrorController.java
+1
-1
spring.factories
...oot-actuator/src/main/resources/META-INF/spring.factories
+10
-10
AuditEventTests.java
...g/springframework/boot/actuate/audit/AuditEventTests.java
+2
-2
InMemoryAuditEventRepositoryTests.java
...boot/actuate/audit/InMemoryAuditEventRepositoryTests.java
+3
-3
AuditListenerTests.java
...ework/boot/actuate/audit/listener/AuditListenerTests.java
+5
-5
AuditAutoConfigurationTests.java
...ot/actuate/autoconfigure/AuditAutoConfigurationTests.java
+6
-6
EndpointAutoConfigurationTests.java
...actuate/autoconfigure/EndpointAutoConfigurationTests.java
+10
-10
EndpointWebMvcAutoConfigurationTests.java
...e/autoconfigure/EndpointWebMvcAutoConfigurationTests.java
+6
-6
ManagementServerPropertiesAutoConfigurationTests.java
...ure/ManagementServerPropertiesAutoConfigurationTests.java
+3
-3
MetricFilterAutoConfigurationTests.java
...ate/autoconfigure/MetricFilterAutoConfigurationTests.java
+4
-4
MetricRepositoryAutoConfigurationTests.java
...autoconfigure/MetricRepositoryAutoConfigurationTests.java
+6
-6
SecurityAutoConfigurationTests.java
...actuate/autoconfigure/SecurityAutoConfigurationTests.java
+3
-3
TraceRepositoryAutoConfigurationTests.java
.../autoconfigure/TraceRepositoryAutoConfigurationTests.java
+4
-4
TraceWebFilterAutoConfigurationTest.java
...te/autoconfigure/TraceWebFilterAutoConfigurationTest.java
+4
-4
AbstractEndpointTests.java
...ramework/boot/actuate/endpoint/AbstractEndpointTests.java
+2
-2
BeansEndpointTests.java
...ngframework/boot/actuate/endpoint/BeansEndpointTests.java
+2
-2
DumpEndpointTests.java
...ingframework/boot/actuate/endpoint/DumpEndpointTests.java
+2
-2
EnvironmentEndpointTests.java
...ework/boot/actuate/endpoint/EnvironmentEndpointTests.java
+2
-2
HealthEndpointTests.java
...gframework/boot/actuate/endpoint/HealthEndpointTests.java
+3
-3
InfoEndpointTests.java
...ingframework/boot/actuate/endpoint/InfoEndpointTests.java
+2
-2
MetricsEndpointTests.java
...framework/boot/actuate/endpoint/MetricsEndpointTests.java
+4
-4
ShutdownEndpointTests.java
...ramework/boot/actuate/endpoint/ShutdownEndpointTests.java
+3
-3
TraceEndpointTests.java
...ngframework/boot/actuate/endpoint/TraceEndpointTests.java
+5
-5
VanillaPublicMetricsTests.java
...work/boot/actuate/endpoint/VanillaPublicMetricsTests.java
+4
-4
EndpointHandlerAdapterTests.java
...oot/actuate/endpoint/mvc/EndpointHandlerAdapterTests.java
+3
-3
EndpointHandlerMappingTests.java
...oot/actuate/endpoint/mvc/EndpointHandlerMappingTests.java
+4
-4
ErrorConfigurationTests.java
...framework/boot/actuate/fixme/ErrorConfigurationTests.java
+1
-1
VanillaHealthIndicatorTests.java
...work/boot/actuate/health/VanillaHealthIndicatorTests.java
+2
-2
DefaultCounterServiceTests.java
...work/boot/actuate/metrics/DefaultCounterServiceTests.java
+2
-2
DefaultGaugeServiceTests.java
...mework/boot/actuate/metrics/DefaultGaugeServiceTests.java
+2
-2
InMemoryMetricRepositoryTests.java
...k/boot/actuate/metrics/InMemoryMetricRepositoryTests.java
+2
-2
SecurityPropertiesTests.java
...work/boot/actuate/properties/SecurityPropertiesTests.java
+2
-2
AuthenticationAuditListenerTests.java
...ot/actuate/security/AuthenticationAuditListenerTests.java
+2
-2
AuthorizationAuditListenerTests.java
...oot/actuate/security/AuthorizationAuditListenerTests.java
+2
-2
InMemoryTraceRepositoryTests.java
...work/boot/actuate/trace/InMemoryTraceRepositoryTests.java
+3
-3
WebRequestTraceFilterTests.java
...mework/boot/actuate/trace/WebRequestTraceFilterTests.java
+3
-3
SampleActuatorUiApplication.java
...ework/boot/sample/ops/ui/SampleActuatorUiApplication.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
;
package
org
.
springframework
.
boot
.
actuate
.
audit
;
import
java.io.Serializable
;
import
java.util.Collections
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEventRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
;
package
org
.
springframework
.
boot
.
actuate
.
audit
;
import
java.util.Date
;
import
java.util.List
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
;
package
org
.
springframework
.
boot
.
actuate
.
audit
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditApplicationEvent.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
.
listener
;
package
org
.
springframework
.
boot
.
actuate
.
audit
.
listener
;
import
java.util.Date
;
import
java.util.Map
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.context.ApplicationEvent
;
import
org.springframework.util.Assert
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditListener.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
.
listener
;
package
org
.
springframework
.
boot
.
actuate
.
audit
.
listener
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
ops
.audit.AuditEventRepository
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEventRepository
;
import
org.springframework.context.ApplicationListener
;
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/AuditAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,18 +14,18 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.audit.AuditEvent
;
import
org.springframework.boot.actuate.audit.AuditEventRepository
;
import
org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
;
import
org.springframework.boot.actuate.audit.listener.AuditListener
;
import
org.springframework.boot.actuate.security.AuthenticationAuditListener
;
import
org.springframework.boot.actuate.security.AuthorizationAuditListener
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.ops.audit.AuditEvent
;
import
org.springframework.boot.ops.audit.AuditEventRepository
;
import
org.springframework.boot.ops.audit.InMemoryAuditEventRepository
;
import
org.springframework.boot.ops.audit.listener.AuditListener
;
import
org.springframework.boot.ops.security.AuthenticationAuditListener
;
import
org.springframework.boot.ops.security.AuthorizationAuditListener
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
...
...
@@ -22,26 +22,26 @@ import java.util.Properties;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.actuate.endpoint.BeansEndpoint
;
import
org.springframework.boot.actuate.endpoint.DumpEndpoint
;
import
org.springframework.boot.actuate.endpoint.Endpoint
;
import
org.springframework.boot.actuate.endpoint.EnvironmentEndpoint
;
import
org.springframework.boot.actuate.endpoint.HealthEndpoint
;
import
org.springframework.boot.actuate.endpoint.InfoEndpoint
;
import
org.springframework.boot.actuate.endpoint.MetricsEndpoint
;
import
org.springframework.boot.actuate.endpoint.PublicMetrics
;
import
org.springframework.boot.actuate.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.actuate.endpoint.TraceEndpoint
;
import
org.springframework.boot.actuate.endpoint.VanillaPublicMetrics
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.actuate.health.VanillaHealthIndicator
;
import
org.springframework.boot.actuate.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.actuate.metrics.MetricRepository
;
import
org.springframework.boot.actuate.trace.InMemoryTraceRepository
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.bind.PropertiesConfigurationFactory
;
import
org.springframework.boot.ops.endpoint.BeansEndpoint
;
import
org.springframework.boot.ops.endpoint.DumpEndpoint
;
import
org.springframework.boot.ops.endpoint.Endpoint
;
import
org.springframework.boot.ops.endpoint.EnvironmentEndpoint
;
import
org.springframework.boot.ops.endpoint.HealthEndpoint
;
import
org.springframework.boot.ops.endpoint.InfoEndpoint
;
import
org.springframework.boot.ops.endpoint.MetricsEndpoint
;
import
org.springframework.boot.ops.endpoint.PublicMetrics
;
import
org.springframework.boot.ops.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.ops.endpoint.TraceEndpoint
;
import
org.springframework.boot.ops.endpoint.VanillaPublicMetrics
;
import
org.springframework.boot.ops.health.HealthIndicator
;
import
org.springframework.boot.ops.health.VanillaHealthIndicator
;
import
org.springframework.boot.ops.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.ops.metrics.MetricRepository
;
import
org.springframework.boot.ops.trace.InMemoryTraceRepository
;
import
org.springframework.boot.ops.trace.TraceRepository
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.env.ConfigurableEnvironment
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
javax.servlet.Servlet
;
...
...
@@ -22,6 +22,10 @@ import org.springframework.beans.BeansException;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.NoSuchBeanDefinitionException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.endpoint.Endpoint
;
import
org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerAdapter
;
import
org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
...
...
@@ -31,10 +35,6 @@ import org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoCo
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext
;
import
org.springframework.boot.context.embedded.properties.ServerProperties
;
import
org.springframework.boot.ops.endpoint.Endpoint
;
import
org.springframework.boot.ops.endpoint.mvc.EndpointHandlerAdapter
;
import
org.springframework.boot.ops.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.ApplicationListener
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,22 +14,22 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
javax.servlet.Filter
;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.HierarchicalBeanFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerAdapter
;
import
org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.SearchStrategy
;
import
org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainerFactory
;
import
org.springframework.boot.context.embedded.EmbeddedServletContainer
;
import
org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
;
import
org.springframework.boot.ops.endpoint.mvc.EndpointHandlerAdapter
;
import
org.springframework.boot.ops.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,19 +14,19 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
javax.servlet.Servlet
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.actuate.web.BasicErrorController
;
import
org.springframework.boot.actuate.web.ErrorController
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainerFactory
;
import
org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
;
import
org.springframework.boot.context.embedded.ErrorPage
;
import
org.springframework.boot.ops.web.BasicErrorController
;
import
org.springframework.boot.ops.web.ErrorController
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.web.servlet.DispatcherServlet
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
java.io.IOException
;
...
...
@@ -28,12 +28,12 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
org.springframework.boot.actuate.metrics.GaugeService
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.ops.metrics.CounterService
;
import
org.springframework.boot.ops.metrics.GaugeService
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.Ordered
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,16 +14,16 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.springframework.boot.actuate.metrics.CounterService
;
import
org.springframework.boot.actuate.metrics.DefaultCounterService
;
import
org.springframework.boot.actuate.metrics.DefaultGaugeService
;
import
org.springframework.boot.actuate.metrics.GaugeService
;
import
org.springframework.boot.actuate.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.actuate.metrics.MetricRepository
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.ops.metrics.CounterService
;
import
org.springframework.boot.ops.metrics.DefaultCounterService
;
import
org.springframework.boot.ops.metrics.DefaultGaugeService
;
import
org.springframework.boot.ops.metrics.GaugeService
;
import
org.springframework.boot.ops.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.ops.metrics.MetricRepository
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/SecurityAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,21 +14,21 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.endpoint.Endpoint
;
import
org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.actuate.properties.SecurityProperties
;
import
org.springframework.boot.actuate.web.ErrorController
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.Endpoint
;
import
org.springframework.boot.ops.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.ops.properties.SecurityProperties
;
import
org.springframework.boot.ops.web.ErrorController
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.Ordered
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/TraceRepositoryAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.springframework.boot.actuate.trace.InMemoryTraceRepository
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.ops.trace.InMemoryTraceRepository
;
import
org.springframework.boot.ops.trace.TraceRepository
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/TraceWebFilterAutoConfiguration.java
View file @
12f0d4d9
...
...
@@ -14,18 +14,18 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
javax.servlet.Servlet
;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.actuate.trace.WebRequestTraceFilter
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.ops.trace.TraceRepository
;
import
org.springframework.boot.ops.trace.WebRequestTraceFilter
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.web.servlet.DispatcherServlet
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Pattern
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ActionEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
/**
* Tagging interface used to indicate that {@link Endpoint} that performs some action.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/BeansEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.springframework.beans.BeansException
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/DumpEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.lang.management.ManagementFactory
;
import
java.lang.management.ThreadInfo
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.springframework.http.MediaType
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EnvironmentEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,10 +14,10 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.ops.health.HealthIndicator
;
import
org.springframework.util.Assert
;
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InfoEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collections
;
import
java.util.LinkedHashMap
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/MetricsEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
org.springframework.boot.actuate.metrics.Metric
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.ops.metrics.Metric
;
import
org.springframework.util.Assert
;
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collection
;
import
org.springframework.boot.
ops
.metrics.Metric
;
import
org.springframework.boot.
actuate
.metrics.Metric
;
/**
* Interface to expose specific {@link Metric}s via a {@link MetricsEndpoint}.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ShutdownEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,15 +14,15 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collections
;
import
java.util.Map
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.ConfigurableApplicationContext
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/TraceEndpoint.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.List
;
import
org.springframework.boot.actuate.trace.Trace
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.ops.trace.Trace
;
import
org.springframework.boot.ops.trace.TraceRepository
;
import
org.springframework.util.Assert
;
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/VanillaPublicMetrics.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collection
;
import
java.util.LinkedHashSet
;
import
org.springframework.boot.
ops
.metrics.Metric
;
import
org.springframework.boot.
ops
.metrics.MetricRepository
;
import
org.springframework.boot.
actuate
.metrics.Metric
;
import
org.springframework.boot.
actuate
.metrics.MetricRepository
;
import
org.springframework.util.Assert
;
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerAdapter.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
.
mvc
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
.
mvc
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
...
...
@@ -28,7 +28,7 @@ import javax.servlet.http.HttpServletResponse;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.
ops
.endpoint.Endpoint
;
import
org.springframework.boot.
actuate
.endpoint.Endpoint
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
.
mvc
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
.
mvc
;
import
java.util.ArrayList
;
import
java.util.Collection
;
...
...
@@ -25,8 +25,8 @@ import javax.servlet.http.HttpServletRequest;
import
org.springframework.beans.factory.BeanFactoryUtils
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.boot.
ops
.endpoint.ActionEndpoint
;
import
org.springframework.boot.
ops
.endpoint.Endpoint
;
import
org.springframework.boot.
actuate
.endpoint.ActionEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.Endpoint
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.util.Assert
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
health
;
package
org
.
springframework
.
boot
.
actuate
.
health
;
/**
* Strategy interface used to provide an indication of application health.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
health
;
package
org
.
springframework
.
boot
.
actuate
.
health
;
/**
* Default implementation of {@link HealthIndicator} that simply returns "ok".
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/CounterService.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
/**
* A service that can be used to increment, decrement and reset a {@link Metric}.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/DefaultCounterService.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
java.util.Date
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/DefaultGaugeService.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
java.util.Date
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
/**
* A service that can be used to manage a {@link Metric} as a gauge.
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/InMemoryMetricRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
java.util.ArrayList
;
import
java.util.Collection
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/Measurement.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
java.util.Date
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/Metric.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
org.springframework.util.Assert
;
import
org.springframework.util.ObjectUtils
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/MetricRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
java.util.Collection
;
import
java.util.Date
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/properties/ManagementServerProperties.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
properties
;
package
org
.
springframework
.
boot
.
actuate
.
properties
;
import
java.net.InetAddress
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/properties/SecurityProperties.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
properties
;
package
org
.
springframework
.
boot
.
actuate
.
properties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.security.config.annotation.web.configurers.SessionCreationPolicy
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/security/AuthenticationAuditListener.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
security
;
package
org
.
springframework
.
boot
.
actuate
.
security
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
ops
.audit.listener.AuditApplicationEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.listener.AuditApplicationEvent
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisherAware
;
import
org.springframework.context.ApplicationListener
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/security/AuthorizationAuditListener.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
security
;
package
org
.
springframework
.
boot
.
actuate
.
security
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
ops
.audit.listener.AuditApplicationEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.listener.AuditApplicationEvent
;
import
org.springframework.context.ApplicationEventPublisher
;
import
org.springframework.context.ApplicationEventPublisherAware
;
import
org.springframework.context.ApplicationListener
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/InMemoryTraceRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.util.ArrayList
;
import
java.util.Collections
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/Trace.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.util.Date
;
import
java.util.Map
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceRepository.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.util.List
;
import
java.util.Map
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.io.IOException
;
import
java.util.Collections
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/BasicErrorController.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
web
;
package
org
.
springframework
.
boot
.
actuate
.
web
;
import
java.io.PrintWriter
;
import
java.io.StringWriter
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/ErrorController.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
web
;
package
org
.
springframework
.
boot
.
actuate
.
web
;
import
org.springframework.stereotype.Controller
;
...
...
spring-boot-actuator/src/main/resources/META-INF/spring.factories
View file @
12f0d4d9
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.
ops
.autoconfigure.AuditAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.EndpointAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.EndpointWebMvcAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.ErrorMvcAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.ManagementServerPropertiesAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.MetricFilterAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.MetricRepositoryAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.SecurityAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.TraceRepositoryAutoConfiguration,\
org.springframework.boot.
ops
.autoconfigure.TraceWebFilterAutoConfiguration
org.springframework.boot.
actuate
.autoconfigure.AuditAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.EndpointAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.EndpointWebMvcAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.ErrorMvcAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.ManagementServerPropertiesAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.MetricFilterAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.MetricRepositoryAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.SecurityAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.TraceRepositoryAutoConfiguration,\
org.springframework.boot.
actuate
.autoconfigure.TraceWebFilterAutoConfiguration
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/audit/AuditEventTests.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
;
package
org
.
springframework
.
boot
.
actuate
.
audit
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepositoryTests.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
;
package
org
.
springframework
.
boot
.
actuate
.
audit
;
import
java.util.Date
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
ops
.audit.InMemoryAuditEventRepository
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.InMemoryAuditEventRepository
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/audit/listener/AuditListenerTests.java
View file @
12f0d4d9
...
...
@@ -14,15 +14,15 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
audit
.
listener
;
package
org
.
springframework
.
boot
.
actuate
.
audit
.
listener
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.audit.AuditEvent
;
import
org.springframework.boot.
ops
.audit.AuditEventRepository
;
import
org.springframework.boot.
ops
.audit.listener.AuditApplicationEvent
;
import
org.springframework.boot.
ops
.audit.listener.AuditListener
;
import
org.springframework.boot.
actuate
.audit.AuditEvent
;
import
org.springframework.boot.
actuate
.audit.AuditEventRepository
;
import
org.springframework.boot.
actuate
.audit.listener.AuditApplicationEvent
;
import
org.springframework.boot.
actuate
.audit.listener.AuditListener
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
verify
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/AuditAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.audit.AuditEventRepository
;
import
org.springframework.boot.
ops
.audit.InMemoryAuditEventRepository
;
import
org.springframework.boot.
ops
.autoconfigure.AuditAutoConfiguration
;
import
org.springframework.boot.
ops
.security.AuthenticationAuditListener
;
import
org.springframework.boot.
ops
.security.AuthorizationAuditListener
;
import
org.springframework.boot.
actuate
.audit.AuditEventRepository
;
import
org.springframework.boot.
actuate
.audit.InMemoryAuditEventRepository
;
import
org.springframework.boot.
actuate
.autoconfigure.AuditAutoConfiguration
;
import
org.springframework.boot.
actuate
.security.AuthenticationAuditListener
;
import
org.springframework.boot.
actuate
.security.AuthorizationAuditListener
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,20 +14,20 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.springframework.boot.TestUtils
;
import
org.springframework.boot.
ops
.autoconfigure.EndpointAutoConfiguration
;
import
org.springframework.boot.
ops
.endpoint.BeansEndpoint
;
import
org.springframework.boot.
ops
.endpoint.DumpEndpoint
;
import
org.springframework.boot.
ops
.endpoint.EnvironmentEndpoint
;
import
org.springframework.boot.
ops
.endpoint.HealthEndpoint
;
import
org.springframework.boot.
ops
.endpoint.InfoEndpoint
;
import
org.springframework.boot.
ops
.endpoint.MetricsEndpoint
;
import
org.springframework.boot.
ops
.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.
ops
.endpoint.TraceEndpoint
;
import
org.springframework.boot.
actuate
.autoconfigure.EndpointAutoConfiguration
;
import
org.springframework.boot.
actuate
.endpoint.BeansEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.DumpEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.EnvironmentEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.HealthEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.InfoEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.MetricsEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.TraceEndpoint
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
java.io.FileNotFoundException
;
import
java.net.SocketException
;
...
...
@@ -24,16 +24,16 @@ import java.nio.charset.Charset;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.boot.TestUtils
;
import
org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration
;
import
org.springframework.boot.actuate.autoconfigure.ManagementServerPropertiesAutoConfiguration
;
import
org.springframework.boot.actuate.endpoint.AbstractEndpoint
;
import
org.springframework.boot.actuate.endpoint.Endpoint
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext
;
import
org.springframework.boot.ops.autoconfigure.EndpointWebMvcAutoConfiguration
;
import
org.springframework.boot.ops.autoconfigure.ManagementServerPropertiesAutoConfiguration
;
import
org.springframework.boot.ops.endpoint.AbstractEndpoint
;
import
org.springframework.boot.ops.endpoint.Endpoint
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.HttpMethod
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.autoconfigure.ManagementServerPropertiesAutoConfiguration
;
import
org.springframework.boot.
ops
.properties.ManagementServerProperties
;
import
org.springframework.boot.
actuate
.autoconfigure.ManagementServerPropertiesAutoConfiguration
;
import
org.springframework.boot.
actuate
.properties.ManagementServerProperties
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
...
...
@@ -22,9 +22,9 @@ import javax.servlet.FilterChain;
import
org.junit.Test
;
import
org.mockito.invocation.InvocationOnMock
;
import
org.mockito.stubbing.Answer
;
import
org.springframework.boot.
ops
.autoconfigure.MetricFilterAutoConfiguration
;
import
org.springframework.boot.
ops
.metrics.CounterService
;
import
org.springframework.boot.
ops
.metrics.GaugeService
;
import
org.springframework.boot.
actuate
.autoconfigure.MetricFilterAutoConfiguration
;
import
org.springframework.boot.
actuate
.metrics.CounterService
;
import
org.springframework.boot.
actuate
.metrics.GaugeService
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricRepositoryAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.autoconfigure.MetricRepositoryAutoConfiguration
;
import
org.springframework.boot.
ops
.metrics.CounterService
;
import
org.springframework.boot.
ops
.metrics.DefaultCounterService
;
import
org.springframework.boot.
ops
.metrics.DefaultGaugeService
;
import
org.springframework.boot.
ops
.metrics.GaugeService
;
import
org.springframework.boot.
actuate
.autoconfigure.MetricRepositoryAutoConfiguration
;
import
org.springframework.boot.
actuate
.metrics.CounterService
;
import
org.springframework.boot.
actuate
.metrics.DefaultCounterService
;
import
org.springframework.boot.
actuate
.metrics.DefaultGaugeService
;
import
org.springframework.boot.
actuate
.metrics.GaugeService
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/SecurityAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration
;
import
org.springframework.boot.actuate.autoconfigure.SecurityAutoConfiguration
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.ops.autoconfigure.EndpointAutoConfiguration
;
import
org.springframework.boot.ops.autoconfigure.SecurityAutoConfiguration
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.mock.web.MockServletContext
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/TraceRepositoryAutoConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.autoconfigure.TraceRepositoryAutoConfiguration
;
import
org.springframework.boot.
ops
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
ops
.trace.TraceRepository
;
import
org.springframework.boot.
actuate
.autoconfigure.TraceRepositoryAutoConfiguration
;
import
org.springframework.boot.
actuate
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
actuate
.trace.TraceRepository
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/TraceWebFilterAutoConfigurationTest.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
autoconfigure
;
package
org
.
springframework
.
boot
.
actuate
.
autoconfigure
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.autoconfigure.TraceRepositoryAutoConfiguration
;
import
org.springframework.boot.actuate.autoconfigure.TraceWebFilterAutoConfiguration
;
import
org.springframework.boot.actuate.trace.WebRequestTraceFilter
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.ops.autoconfigure.TraceRepositoryAutoConfiguration
;
import
org.springframework.boot.ops.autoconfigure.TraceWebFilterAutoConfiguration
;
import
org.springframework.boot.ops.trace.WebRequestTraceFilter
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collections
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.springframework.boot.TestUtils
;
import
org.springframework.boot.
ops
.endpoint.Endpoint
;
import
org.springframework.boot.
actuate
.endpoint.Endpoint
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.core.env.MapPropertySource
;
import
org.springframework.core.env.PropertySource
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/BeansEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.BeansEndpoint
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.BeansEndpoint
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.http.MediaType
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/DumpEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.lang.management.ThreadInfo
;
import
java.util.List
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.DumpEndpoint
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.DumpEndpoint
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EnvironmentEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.EnvironmentEndpoint
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.EnvironmentEndpoint
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/HealthEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.HealthEndpoint
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.HealthEndpoint
;
import
org.springframework.boot.ops.health.HealthIndicator
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/InfoEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.InfoEndpoint
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.InfoEndpoint
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/MetricsEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,16 +14,16 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collection
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.MetricsEndpoint
;
import
org.springframework.boot.actuate.endpoint.PublicMetrics
;
import
org.springframework.boot.actuate.metrics.Metric
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.MetricsEndpoint
;
import
org.springframework.boot.ops.endpoint.PublicMetrics
;
import
org.springframework.boot.ops.metrics.Metric
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ShutdownEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,12 +14,12 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.actuate.properties.ManagementServerProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.ShutdownEndpoint
;
import
org.springframework.boot.ops.properties.ManagementServerProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/TraceEndpointTests.java
View file @
12f0d4d9
...
...
@@ -14,16 +14,16 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.TraceEndpoint
;
import
org.springframework.boot.actuate.trace.InMemoryTraceRepository
;
import
org.springframework.boot.actuate.trace.Trace
;
import
org.springframework.boot.actuate.trace.TraceRepository
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.ops.endpoint.TraceEndpoint
;
import
org.springframework.boot.ops.trace.InMemoryTraceRepository
;
import
org.springframework.boot.ops.trace.Trace
;
import
org.springframework.boot.ops.trace.TraceRepository
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/VanillaPublicMetricsTests.java
View file @
12f0d4d9
...
...
@@ -14,16 +14,16 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.endpoint.VanillaPublicMetrics
;
import
org.springframework.boot.
ops
.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.
ops
.metrics.Metric
;
import
org.springframework.boot.
actuate
.endpoint.VanillaPublicMetrics
;
import
org.springframework.boot.
actuate
.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.
actuate
.metrics.Metric
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
junit
.
Assert
.
assertThat
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerAdapterTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
.
mvc
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
.
mvc
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.endpoint.Endpoint
;
import
org.springframework.boot.
ops
.endpoint.mvc.EndpointHandlerAdapter
;
import
org.springframework.boot.
actuate
.endpoint.Endpoint
;
import
org.springframework.boot.
actuate
.endpoint.mvc.EndpointHandlerAdapter
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
endpoint
.
mvc
;
package
org
.
springframework
.
boot
.
actuate
.
endpoint
.
mvc
;
import
java.util.Arrays
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.endpoint.AbstractEndpoint
;
import
org.springframework.boot.
ops
.endpoint.ActionEndpoint
;
import
org.springframework.boot.
ops
.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.boot.
actuate
.endpoint.AbstractEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.ActionEndpoint
;
import
org.springframework.boot.
actuate
.endpoint.mvc.EndpointHandlerMapping
;
import
org.springframework.mock.web.MockHttpServletRequest
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/fixme/ErrorConfigurationTests.java
View file @
12f0d4d9
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
fixme
;
package
org
.
springframework
.
boot
.
actuate
.
fixme
;
/**
* @author Dave Syer
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java
View file @
12f0d4d9
...
...
@@ -14,10 +14,10 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
health
;
package
org
.
springframework
.
boot
.
actuate
.
health
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.health.VanillaHealthIndicator
;
import
org.springframework.boot.
actuate
.health.VanillaHealthIndicator
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
junit
.
Assert
.
assertThat
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/DefaultCounterServiceTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.metrics.DefaultCounterService
;
import
org.springframework.boot.
actuate
.metrics.DefaultCounterService
;
import
static
org
.
junit
.
Assert
.
fail
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/DefaultGaugeServiceTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.metrics.DefaultGaugeService
;
import
org.springframework.boot.
actuate
.metrics.DefaultGaugeService
;
import
static
org
.
junit
.
Assert
.
fail
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/InMemoryMetricRepositoryTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
metrics
;
package
org
.
springframework
.
boot
.
actuate
.
metrics
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.metrics.InMemoryMetricRepository
;
import
org.springframework.boot.
actuate
.metrics.InMemoryMetricRepository
;
import
static
org
.
junit
.
Assert
.
fail
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/properties/SecurityPropertiesTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
properties
;
package
org
.
springframework
.
boot
.
actuate
.
properties
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.springframework.beans.MutablePropertyValues
;
import
org.springframework.boot.actuate.properties.SecurityProperties
;
import
org.springframework.boot.bind.RelaxedDataBinder
;
import
org.springframework.boot.ops.properties.SecurityProperties
;
import
org.springframework.core.convert.support.DefaultConversionService
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/security/AuthenticationAuditListenerTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
security
;
package
org
.
springframework
.
boot
.
actuate
.
security
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.security.AuthenticationAuditListener
;
import
org.springframework.boot.
actuate
.security.AuthenticationAuditListener
;
import
static
org
.
junit
.
Assert
.
fail
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/security/AuthorizationAuditListenerTests.java
View file @
12f0d4d9
...
...
@@ -14,11 +14,11 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
security
;
package
org
.
springframework
.
boot
.
actuate
.
security
;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.security.AuthenticationAuditListener
;
import
org.springframework.boot.
actuate
.security.AuthenticationAuditListener
;
import
static
org
.
junit
.
Assert
.
fail
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/InMemoryTraceRepositoryTests.java
View file @
12f0d4d9
...
...
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.util.Collections
;
import
java.util.List
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
ops
.trace.Trace
;
import
org.springframework.boot.
actuate
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
actuate
.trace.Trace
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/WebRequestTraceFilterTests.java
View file @
12f0d4d9
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
ops
.
trace
;
package
org
.
springframework
.
boot
.
actuate
.
trace
;
import
java.util.Map
;
import
org.junit.Test
;
import
org.springframework.boot.
ops
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
ops
.trace.WebRequestTraceFilter
;
import
org.springframework.boot.
actuate
.trace.InMemoryTraceRepository
;
import
org.springframework.boot.
actuate
.trace.WebRequestTraceFilter
;
import
org.springframework.mock.web.MockHttpServletRequest
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/main/java/org/springframework/boot/sample/ops/ui/SampleActuatorUiApplication.java
View file @
12f0d4d9
...
...
@@ -20,8 +20,8 @@ import java.util.Date;
import
java.util.Map
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.actuate.properties.SecurityProperties
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.ops.properties.SecurityProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.stereotype.Controller
;
...
...
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