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; } }