Search in sources :

Example 1 with SimonConsoleServlet

use of org.javasimon.console.SimonConsoleServlet in project springside4 by springside.

the class JavaSimonConfig method dispatcherRegistration.

// 定义Servlet URL Mapping
@Bean
public ServletRegistrationBean dispatcherRegistration() {
    ServletRegistrationBean registration = new ServletRegistrationBean(new SimonConsoleServlet());
    registration.addInitParameter("url-prefix", "/javasimon");
    registration.addUrlMappings("/javasimon/*");
    return registration;
}
Also used : SimonConsoleServlet(org.javasimon.console.SimonConsoleServlet) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

SimonConsoleServlet (org.javasimon.console.SimonConsoleServlet)1 ServletRegistrationBean (org.springframework.boot.context.embedded.ServletRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1