Numerous changes to actuator

Numerous changes to the actuator project, including:
- Specific Endpoint interface
- Spring MVC/Enpoint adapter
- Management server context changes
- Consistent auto-configuration class naming
- Auto-configuration ordering
- Javadoc, code formatting and tests
This commit is contained in:
Phillip Webb
2013-06-12 14:00:22 -07:00
parent dd69d0f660
commit 8c347fc99b
121 changed files with 3428 additions and 2404 deletions

View File

@@ -19,6 +19,8 @@ package org.springframework.bootstrap.sample.trad.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@@ -42,4 +44,13 @@ public class WebConfig extends WebMvcConfigurerAdapter {
return viewResolver;
}
@Bean
public DispatcherServlet dispatcherServlet() {
return new DispatcherServlet();
}
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
}

View File

@@ -24,7 +24,6 @@ import static org.junit.Assert.assertTrue;
* Basic integration tests for demo application.
*
* @author Dave Syer
*
*/
public class TradBootstrapApplicationTests {