Comment article
Recent posts

December 2018
How can the MDC context be used in the reactive Spring applications

December 2018
Spring Boot ConfigurationProperties on Base Classes in Kotlin

December 2018
Reinforcement learning – Part 2: Getting started with Deep Q-Networks

November 2018
API Gateways – An Evaluation of Zuul 2

September 2018
Scale your Spring Boot Application in Kubernetes

September 2018
Comments
Konstantin
What error message do you get?
Yogendra
I have implemented the same but still it is not working
@SpringBootApplication
public class SpringBootWebApplication extends SpringBootServletInitializer {
static Logger log = LoggerFactory.getLogger(“SpringBootWebApplication”);
public static void main(String[] args) {
log.debug(“Entitlements Spring Boot App starting”);
SpringApplication.run(SpringBootWebApplication.class, args);
}
@Configuration
@EnableWebMvc
public static class WebMvcConfig extends WebMvcConfigurerAdapter {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
configurer.setUseSuffixPatternMatch(false);
}
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
configurer.favorPathExtension(false);
configurer.ignoreUnknownPathExtensions(false);
}
}
}
Ferrair
Wonderful! Thanks Konstantin. I have been crazy about my 406 error.
Tanya
Thank you so much! I was at my wits’ end trying to figure out why i get the 406 error while explicitly building and declaring a JSON response
Prateek
Thanks Konstantin, you saved my day !