當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。