本文整理匯總了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);
}