@GetMapping(value = { "/out" }, produces = MediaType.TEXT_HTML_VALUE)
  public String outIndex(Model model) {

    model.addAttribute("status", action.dataMap());
    return "/out";
  }

 

<select class="sml" name="action">
   <option value="" selected="selected">全部</option>
  <option th:each="entry : ${status.entrySet()}"
                th:value="${entry.key}" th:utext="${entry.value}"></option>
</select>

    咪卡恰比 發表在 痞客邦 留言(0) 人氣()