KB
Size: a a a
KB
MJ
MJ
EA
LP
EA
EL
RM
public class Path {
public static final String USER = "/user";
}
@Controller
@RequestMapping(Path.USER)
public class MyController {
@GetMapping("/{userId}")
public String userById(@PathVariable long userId, Model model) {
model.addAttribute("user", new User(userId, UUID.randomUUID().toString()));
return "user";
}
}<a th:href="${T(com.example.Path).USER} + '/1'">User #1</a>EL
RM
EL
EL
RM
EL
V
V
V
V