【发布时间】:2018-08-07 17:14:18
【问题描述】:
我有 Spring Boot Camel 应用程序,其中使用 camel-restlet 公开了其余 api
示例路线
@Component
public class AppRoute extends RouteBuilder{
public void configure(CamelContext context){
from("restlet:employee?restletMethods=GET").log("${body}");
}
}
应用程序运行完美 (spring-boot:run)。但我无法找到 API 暴露在哪个路径下。日志没有信息。
我点击的每个 API 返回 404。日志显示路由已启动。它在哪条路径下运行。我该如何改变它?
注意:请不要建议任何基于 XML 的配置。我可以放在@Configuration 下的任何内容都是完美的
【问题讨论】:
标签: rest servlets path apache-camel restlet