更改 Camel 的基本 /camel url

Change Camel's basic /camel url

问题:

当前URL:http://localhost:8080/camel/hello

需要URL:http://localhost:8080/service/hello

已检查对我不起作用的链接:

Link1

Link3

EG: application.yml

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

很明显这种方法有效:

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