Java Code Examples for org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer#favorPathExtension()

The following examples show how to use org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer#favorPathExtension() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WidgetConfiguration.java    From catnap with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 2
Source File: KafDrop.java    From Kafdrop with Apache License 2.0 5 votes vote down vote up
@Bean
public WebMvcConfigurerAdapter webConfig()
{
   return new WebMvcConfigurerAdapter()
   {
      @Override
      public void configureContentNegotiation(ContentNegotiationConfigurer configurer)
      {
         super.configureContentNegotiation(configurer);
         configurer.favorPathExtension(false);
      }
   };
}
 
Example 3
Source File: WebConfig.java    From spring4-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(
		ContentNegotiationConfigurer configurer) {
	configurer.favorParameter(false);
	configurer.favorPathExtension(false);
}
 
Example 4
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 5
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 6
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 7
Source File: WebConfig.java    From spring4-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorParameter(false);
	configurer.favorPathExtension(false);
}
 
Example 8
Source File: TestController.java    From aws-serverless-java-container with Apache License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 9
Source File: PresentationConfiguration.java    From hesperides with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 10
Source File: WebConfig.java    From spring4-sandbox with Apache License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorParameter(false);
    configurer.favorPathExtension(false);
}
 
Example 11
Source File: LiteWebConfiguration.java    From singleton with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorPathExtension(false);
}
 
Example 12
Source File: WebMvcAutoConfiguration.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 13
Source File: CustomMVCConfiguration.java    From MicroCommunity with Apache License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(
        ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 14
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 15
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 16
Source File: DispatcherServletConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
  configurer.favorPathExtension(false);
}
 
Example 17
Source File: DispatcherServletConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
  configurer.favorPathExtension(false);
}
 
Example 18
Source File: DispatcherServletConfiguration.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}
 
Example 19
Source File: WebConfiguration.java    From singleton with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
	configurer.favorPathExtension(false);
}
 
Example 20
Source File: WebConfiguration.java    From singleton with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
}