Change Camel's basic /camel url

Issue:

Current URL: http://localhost:8080/camel/hello

Desired URL: http://localhost:8080/service/hello

Checked links which are NOT working for me:

Link1

Link2

Link3

EG: application.yml

 camel:
  springboot:
    name: CamelRestContext
  component:
    servlet:
      mapping:
        enabled: true
        context-path: /service

Upvotes: 2

Views: 1043

Answers (1)

So apparently this way works:

camel:
  springboot:
    name: RestDSLContext
  servlet:
    mapping:
      context-path: /service/*
  rest:
    context-path: /service

Upvotes: 2

Related Questions