當前位置:編程學習大全網 - 網站源碼 - spring velocity亂碼問題

spring velocity亂碼問題

<bean id= "velocityConfig " class= "org.springframework.web.servlet.view.velocity.VelocityConfigurer ">

<property name= "resourceLoaderPath ">

<value> / </value>

</property>

<property name= "velocityProperties ">

<props>

<prop key= "input.encoding "> gb2312 </prop>

<prop key= "output.encoding "> gb2312 </prop>

</props>

</property>

</bean>

試試吧,應該沒問題的

  • 上一篇:翻譯密碼.要求將輸入的源碼壹律轉換為大寫字母進行翻譯,如出現字母以外的其它字符,顯示出錯誤信息
  • 下一篇:請問申請軟件著作權時 用MFC 編寫的程序,編程語言寫什麽?程序量是所有的.h和.cpp文件中行數?
  • copyright 2024編程學習大全網