如何通过thymeleaf回显数据库中用“;”分割开的图片路径
比如imgPath是你从数据库中查出来的图片路径, 在Controller中使用model.addAttribute('imgPath',imgPath);
在thymeleaf中使用 ${#strings.arraySplit(imgPath, ';')} 可以得到分割后的一个String数组
你也可以直接在Controller中分割好