czt
2025-06-04 688fd8243286b342bfdeb3ee0b4ee45be4c005cc
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.fzzy.d7;
 
import com.bstek.dorado.web.servlet.DoradoServlet;
 
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
 
/**
 * @author: andy.jia
 * @description:
 **/
//@Configuration
public class DoradoConfigure {
 
    @SuppressWarnings({ "rawtypes", "unchecked" })
    @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;
    }
 
}