Skip to content

Micronaut's UriMatchTemplate.match method doesn't work the same as how Spring's UriTemplate #4582

Answered by graemerocher
donbeave asked this question in Q&A
Discussion options

You must be logged in to vote

It is not a design goal for UriMatchTemplate to be the same as the Spring impl. I believe you can use:

private static final String URL_FORMAT = "https://www.mydomain.com/post/{postSlug+}";

To achieve the same behaviour in Micronaut

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@donbeave
Comment options

Answer selected by graemerocher
Comment options

You must be logged in to vote
3 replies
@donbeave
Comment options

@graemerocher
Comment options

@donbeave
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4582 on November 23, 2020 09:35.