![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
阿秦iu
本人开发渣渣,乐于学习,欢迎各位大神传授经验~
展开
-
接口添加@ResponseBody注解后,thymeleaf依然报错:template might not exist or might not be accessible by any of the
先上问题代码 @Controller @RequestMapping("/guarantee") public class GuaranteeController { @Autowired private NoticeService noticeService; @RequestMapping({"", "/index"}) public ModelAndView index(ModelAndView mav){ //通知信息 mav.ad原创 2020-12-08 18:22:24 · 449 阅读 · 0 评论 -
thymeleaf #{} i18n 传递参数
thymeleaf #strings 用法 th:title="${#strings.toString(obj)}" 将object对象转为string th:title="${#strings.arrayToString(obj[])}" 将object数组转为String数组 th:title="${#strings.listToString(list)}" 将任意类型的List转换成String类型的List th:title="${#strings.setToString(set)}" 将任意类型原创 2020-10-21 15:51:31 · 744 阅读 · 0 评论