restConfiguration().component("servlet")
.enableCORS(true)
.bindingMode(RestBindingMode.json)
.skipBindingOnErrorCode(false)
.clientRequestValidation(true)
.dataFormatProperty("prettyPrint", "true")
.apiContextPath("/swagger")
.apiProperty("api.title", "STP API")
.apiProperty("api.version", "1.2.3");
rest("/stp")
.securityDefinitions()
.oauth2("swagger-ui").authorizationUrl("http://localhost:8030/webjars/swagger-ui/index.html?url=/camel/swagger&validatorUrl=").end()
.end()
.post("/result")
.security("swagger-ui", "write:swagger,read:swagger")
.description("Stp status data")
.produces(Constants.APPLICATION_JSON)
.consumes(Constants.APPLICATION_JSON)
.type(SQSStpStatusDto.class)
.to(DirectRoutes.DIRECT_STP_RESULT_ROUTE)
我这样做,但它不工作。
暂无答案!
目前还没有任何答案,快来回答吧!