解决FreeMarker中文乱码问题

在web.xml中配置如下:

< servlet >
    
< servlet-name > Freemarker servlet-name >
    
< servlet-class > freemarker.ext.servlet.FreemarkerServlet servlet-class >
    
< init-param >
        
< param-name > TemplatePath param-name >
        
< param-value > / param-value >
    
init-param >
    
< init-param >
        
< param-name > template_update_delay param-name >
        
< param-value > 3600 param-value >  
    
init-param >
    
< init-param >
        
< param-name > DefaultEncoding param-name >  
        
< param-value > utf-8 param-value >
    
init-param >
    
< load-on-startup > 1 load-on-startup >
servlet >

--------------------

你可能感兴趣的:(Freemarker)