Paragraph 3.6.2. Changing the base URI of the Spring Data Rest reference documentation mentions spring.data.rest.basePath for Spring Boot 1.2+.
It should now also mention spring.data.rest.base-path for Spring Boot 2.0.0.
Affects: 3.0.5 (Kay SR5)
The text was updated successfully, but these errors were encountered:
I don't really understand where your problem is. I tried using spring.data.rest.basePath and spring.data.rest.base-path with Spring Boot 2.0.2 and both seem to work fine. Spring Boot 2.0.0 falls into the category "Spring Boot 1.2+", so everything looks fine for me in the documentation
As far as I recall, I posted this while making configuration changes to a project that I had upgraded from SB 1.5.x to 2.0.0. spring.data.rest.basePath did not work for me (it did with SB1.5), but spring.data.rest.base-path did.
I know Spring Boot configuration uses a relaxed binder and that both syntaxes should work. I don't know whether it's a configuration issue or not, I didn't look further, it just didn't work in my case.
Since the Spring Boot documentation mainly uses the dash-cased convention (in the Common application properties appendix, both for Spring Boot 1.5.x and 2.0.x, in the Properties and configuration howto...), it just seem logical/useful to me to mention spring.data.rest.base-path.