thymeleaf用th:text不能获取到model的值,提示为null;
freemarker也是提示为null;
但能取session的值,th标签遍历也不能遍历,json都能正常显示没问题。
controller
html
配置
thymeleaf:
cache: false
checktemplatelocation: true
enabled: true
encoding: UTF-8
mode: HTML5
prefix: classpath:/templates/
suffix: .html