1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.ld.igds.config.d7;
 
import com.bstek.dorado.web.servlet.DoradoServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
/**
 * @author: andy.jia
 * @description:
 * @date:2019.03.02
 **/
@Configuration
public class DoradoConfigure {
 
    @Bean
    public ServletRegistrationBean doradoServlet() {
        ServletRegistrationBean servlet = new ServletRegistrationBean(new DoradoServlet());
        servlet.setLoadOnStartup(1);
        servlet.addUrlMappings("*.d");
        servlet.addUrlMappings("*.c");
        servlet.addUrlMappings("*.action");
        servlet.addUrlMappings("*.dpkg");
        servlet.addUrlMappings("/dorado/*");
        return servlet;
    }
 
}