当前位置: 首页>>代码示例>>Java>>正文


Java DefaultServletHandlerConfigurer类代码示例

本文整理汇总了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();
}
 
开发者ID:suomenriistakeskus,项目名称:oma-riista-web,代码行数:9,代码来源:WebMVCConfig.java

示例2: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(
        DefaultServletHandlerConfigurer configurer) {
    configurer.enable();
}
 
开发者ID:PacktPublishing,项目名称:Spring-5.0-Cookbook,代码行数:6,代码来源:SpringMvcConfig.java

示例3: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
/**
 * 将对于静态资源的请求转发到 Servlet 容器的默认处理静态资源的 Servlet
 * 因为将 Spring 的拦截模式设置为 "/" 时会对静态资源进行拦截
 */
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
    configurer.enable();
}
 
开发者ID:drtrang,项目名称:dynamic-data-source-demo,代码行数:9,代码来源:SpringMvcConfig.java

示例4: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
    configurer.enable();
}
 
开发者ID:oncecloud,项目名称:devops-cstack,代码行数:5,代码来源:CloudUnitApplicationContext.java

示例5: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {

    configurer.enable();
}
 
开发者ID:brainysoon,项目名称:superhouse,代码行数:6,代码来源:WebConfig.java

示例6: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
protected void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
	configurer.enable();
}
 
开发者ID:namics,项目名称:spring-batch-support,代码行数:5,代码来源:SpringBatchSupportWebServletConfig.java

示例7: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
	configurer.enable();
}
 
开发者ID:namics,项目名称:spring-i18n-support,代码行数:5,代码来源:I18nWebConfig.java

示例8: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(final DefaultServletHandlerConfigurer configurer) {
    configurer.enable();
}
 
开发者ID:MinBZK,项目名称:OperatieBRP,代码行数:5,代码来源:WebConfiguratie.java

示例9: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(
		DefaultServletHandlerConfigurer configurer) {
	configurer.enable();
}
 
开发者ID:Apress,项目名称:introducing-spring-framework,代码行数:6,代码来源:WebConfig.java

示例10: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
{
   configurer.enable();
}
 
开发者ID:ismartonline,项目名称:ismartonline,代码行数:6,代码来源:AppWebConfiguration.java

示例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();
}
 
开发者ID:nailtonvieira,项目名称:pswot-cloud-java-spring-webapp,代码行数:6,代码来源:AppWebConfiguration.java

示例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");
}
 
开发者ID:tvajjala,项目名称:interview-preparation,代码行数:7,代码来源:WebConfig.java

示例13: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
{
    configurer.enable();
}
 
开发者ID:OpenDataCyprus,项目名称:integers,代码行数:6,代码来源:ApplicationContextConfig.java

示例14: configureDefaultServletHandling

import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; //导入依赖的package包/类
@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
    super.configureDefaultServletHandling(configurer);
}
 
开发者ID:KonkerLabs,项目名称:konker-platform,代码行数:5,代码来源:WebMvcConfig.java


注:本文中的org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。