Skip to content

Commit

Permalink
Added route naming example for YAML (#11781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalewski authored Oct 20, 2023
1 parent e96d647 commit edbe483
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/user-manual/modules/faq/pages/how-do-i-name-my-routes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,16 @@ And in Spring XML using the `id` attribute:
<to uri="mock:bar"/>
</route>
----

Same example for YAML using the `id` attribute:

[source,yaml]
----
- route:
id: myRoute
from:
uri: direct:start
steps:
- to:
uri: mock:bar
----

0 comments on commit edbe483

Please sign in to comment.