【发布时间】:2020-07-30 03:01:57
【问题描述】:
@RequestMapping(value = "alphabet")
public String index(Model model) {
model.addAttribute("title", "Alphabet");
return "categories/index";
我们在 ${title} 页面
我正在尝试让标题显示在 html 标记中。有没有办法在 Spring Boot 中做到这一点?
【问题讨论】:
-
有..阅读the docs。
标签: java spring-boot controller thymeleaf