freemarker 遇到的一些问题。

1.java.lang.IllegalAccessError: tried to access method freemarker.ext.servlet.AllHttpScopesHashModel
    这是与springmvc集成中碰到的问题,提升freemarker的版本,最好是在3.18+
2.javax.servlet.ServletException: Could not resolve view with name 'userlist' in servlet with name 'springmvc'
    这是在使用freemarker的时候,添加了<property name="prefix">,去掉就好了。
3.freemarker.core.UnexpectedTypeException: [... Exception message was already printed; see it above ...]
    map<integer,string>  ===> map<string,object>


你可能感兴趣的:(freemarker 遇到的一些问题。)