本文整理汇总了Java中org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer.enable方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultServletHandlerConfigurer.enable方法的具体用法?Java DefaultServletHandlerConfigurer.enable怎么用?Java DefaultServletHandlerConfigurer.enable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer
的用法示例。
在下文中一共展示了DefaultServletHandlerConfigurer.enable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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");
}
示例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
protected void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例6: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例7: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(final DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例8: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
{
configurer.enable();
}
示例9: 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();
}
示例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包/类
/**
* Handle static resources for a front app
*/
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例12: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例13: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(
final DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例14: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(final DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
示例15: configureDefaultServletHandling
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入方法依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}