4

In Spring Boot 1.5.8, I want to setup all of my RestControllers' URLs to be case insensitive.

Here is a programmatic solution on Stackoverflow.

I just wonder is there any kinds of configuration we could setup in application.properties (or in other Spring Boot's configuration file)? Unfortunately, I don't find any flags in Spring Boot's Appendix A.

Could we configure the URL to be case-insensitive in Spring Boot?

Thanks.

Top.Deck
  • 1,077
  • 3
  • 16
  • 31

1 Answers1

-1

If it's a Spring Boot application you can have this in your application.properties file:

spring.jackson.mapper.accept_case_insensitive_properties=true
Draken
  • 3,134
  • 13
  • 34
  • 54
Marco Capo
  • 226
  • 3
  • 7
  • 1
    @Macro this only makes the JSON payload case insensitive. What I was asking is make the *URL* case insensitive. – Top.Deck Jul 26 '18 at 14:28