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