org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer#favorPathExtension ( )源码实例Demo

下面列出了org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer#favorPathExtension ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: Kafdrop   文件: KafDrop.java
@Bean
public WebMvcConfigurerAdapter webConfig()
{
   return new WebMvcConfigurerAdapter()
   {
      @Override
      public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
      {
         super.configureContentNegotiation(configurer);
         configurer.favorPathExtension(false);
      }
   };
}
 
源代码2 项目: catnap   文件: WidgetConfiguration.java
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.defaultContentType(MediaType.APPLICATION_JSON);
    configurer.favorPathExtension(true);
    configurer.ignoreAcceptHeader(false);
    configurer.mediaType("json", MediaType.APPLICATION_JSON);
    configurer.mediaType("jsonp", new MediaType("application", "x-javascript"));

    super.configureContentNegotiation(configurer);
}
 
源代码3 项目: singleton   文件: LiteWebConfiguration.java
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorPathExtension(false);
}
 
源代码4 项目: singleton   文件: WebConfiguration.java
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
源代码5 项目: singleton   文件: WebConfiguration.java
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
  configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
  configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
源代码11 项目: MicroCommunity   文件: CustomMVCConfiguration.java
@Override
public void configureContentNegotiation(
        ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
源代码12 项目: hawkbit   文件: WebMvcAutoConfiguration.java
@Override
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
源代码13 项目: spring4-sandbox   文件: WebConfig.java
@Override
public void configureContentNegotiation(
		ContentNegotiationConfigurer configurer) {
	configurer.favorParameter(false);
	configurer.favorPathExtension(false);
}
 
源代码14 项目: spring4-sandbox   文件: WebConfig.java
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorParameter(false);
    configurer.favorPathExtension(false);
}
 
源代码15 项目: hesperides   文件: PresentationConfiguration.java
@Override
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
源代码17 项目: spring4-sandbox   文件: WebConfig.java
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorParameter(false);
	configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}