Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpringBoot RestController returns 405 for path 'services/*'

We recently updated a project to spring boot version '1.5.6.RELEASE' and noticed that several REST-services did not work anymore. We found out that it has to do with the RequestMapping - when a Rest-URL starts with 'services/', the Request always returns a HTTP 405 (Method not allowd). Changing that path a bit, it works again. Our API uses this 'services/...' paths. This only seems to occur when I also use soap services.

Has anyone a hint to solve this?

Here is a simple working example: https://github.com/gemdat/rest_demo/tree/master

like image 619
Beat Jost Avatar asked Jul 29 '26 04:07

Beat Jost


1 Answers

We finally found the problem - due to a spring servlet refactoring we had to adjust the 'webservice path' in the application.properties...

spring.data.rest.base-path=/services/rest
spring.webservices.path=/services/soap
like image 128
Beat Jost Avatar answered Aug 01 '26 05:08

Beat Jost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!