Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: Update context-root config documentation #8427

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/src/main/asciidoc/mp/server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ You can configure `@RoutingPath` to define the path a service is registered on.
===== Configuration override of routing path

For each HTTP service class you can define the routing path by specifying a configuration
option `class-name.routing-path.path`.
option `class-name.routing-path.path`. The `routing-path` configuration can be applied to Jax-RS application.

Example (YAML) configuration for a class `io.helidon.example.AdminService` that changes the
routing path to `/management`:
Expand All @@ -312,6 +312,20 @@ io.helidon.examples.AdminService:
path: "/management"
----

The same example configuration for `.properties` file:
tvallin marked this conversation as resolved.
Show resolved Hide resolved

[source,properties]
----
io.helidon.examples.AdminService.routing-path.path=/management
----

Use the following configuration key prefix if there is no explicit Jax-RS `jakarta.ws.rs.Application`:

[source,properties]
----
jakarta.ws.rs.core.Application.routing-path.path=/management
----

=== Serving Static Content

[source,properties]
Expand Down
Loading