How to align Spring Boot context path with Apache Camel context path?

241 views Asked by At

I to have a unified context path /api/* for all my RestControllers, as well as all of my Apache Camel Routes that are using rest.

For my understanding, these are the properties that are required to set:

camel.rest.api-context-path=/api/*
server.servlet.context-path=/api/*
camel.servlet.mapping.context-path=/api/*

However, it seems they are somehow conflicting and I cannot get them working all together. It usually leads to 404 errors and none of the routes are accessible.

What do I have to do in order to make everything working under the same context path?

0

There are 0 answers