-
Can URLs support multiple? The same link supports multiple settings, such as /abc and /abc/ java spring @GetMapping(value = {"/a-{area}/" , "/a-{area}-{p}/"}) Spring's routing can be set in array form to point to a single controller, so there is no need to write multiple controllers, such as an article with comments and page flipping, or a path with/or without |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You might be looking for the |
Beta Was this translation helpful? Give feedback.
-
Using manual routing is also an option, the Resource::new(["/test", "/abc"]) |
Beta Was this translation helpful? Give feedback.
There's no macro that has that syntax. You best solution using macros is: