在 Spring Boot 1.5.8 中,我想将所有 RestController
URL 设置为不区分大小写。
Here是 Stackoverflow 上的一个编程解决方案。
我只是想知道我们是否可以在 application.properties (或其他 Spring Boot 的配置文件)中设置任何类型的配置? 不幸的是,我在 Spring Boot's Appendix A 中没有找到任何标志。 .
我们可以在 Spring Boot 中将 URL 配置为不区分大小写吗?
谢谢。
最佳答案
如果它是 Spring Boot 应用程序,您可以将其放在 application.properties 文件中:
spring.jackson.mapper.accept_case_insensitive_properties=true
关于java - Spring Boot 1.5.8 URL 不区分大小写配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47164679/