本文整理汇总了Java中org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer类的典型用法代码示例。如果您正苦于以下问题:Java DefaultServletHandlerConfigurer类的具体用法?Java DefaultServletHandlerConfigurer怎么用?Java DefaultServletHandlerConfigurer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultServletHandlerConfigurer类属于org.springframework.web.servlet.config.annotation包,在下文中一共展示了DefaultServletHandlerConfigurer类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
/*
* Ensures that dispatcher servlet can be mapped to '/' and that static resources
* are still served by the containers default servlet.
*/
configurer.enable();
}
示例2: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(
DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例3: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
/**
* 将对于静态资源的请求转发到 Servlet 容器的默认处理静态资源的 Servlet
* 因为将 Spring 的拦截模式设置为 "/" 时会对静态资源进行拦截
*/
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例4: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例5: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例6: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
protected void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例7: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例8: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(final DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例9: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(
DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例10: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
{
configurer.enable();
}
示例11: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override // caso o spring não consiga resolver a requisição para um controler, ele deixa a cargo do conteiner java web
public void configureDefaultServletHandling(
DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例12: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
// TODO Auto-generated method stub
super.configureDefaultServletHandling(configurer);
configurer.enable("staticServlet");
}
示例13: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
{
configurer.enable();
}
示例14: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
super.configureDefaultServletHandling(configurer);
}