Answer the question
In order to leave comments, you need to log in
How to make a link multilevel?
How to make a link like: site\profile\id1321
or something else
Answer the question
In order to leave comments, you need to log in
Add controller with RequestMapping=/profile
@RequestMapping("/profile")
public class ProfileController {
@GetMapping("/{id}")
public ModelAndView profileById(@PathVariable String id) {
final ModelAndView model = new ModelAndView("profile");
/* do something */
return model;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question