springMvc與Freemarker整合
項目路徑
引jar包
(1)
(2)配置web.xml文件
contextConfigLocation
classpath:applicationContext.xml index.html
org.springframework.web.context.ContextLoaderListener 字符集過濾器 encodingFilter org.springframework.web.filter.CharacterEncodingFilter 字符集編碼
encoding
UTF-8 encodingFilter * springMvc org.springframework.web.servlet.DispatcherServlet spring mvc 配置文件
contextConfigLocation
classpath:spring-mvc.xml 1 springMvc /*
(3)配置applicationContext.xml文件
10
zh_CN
yyyy-MM-dd HH:mm:ss
yyyy-MM-dd
#.##
(4)配置spring-mvc.xml文件
-->
※比較受歡迎的幾款免費IDE編輯器
※為什麼好多公司的開發語言從C#變成了JAVA?
※狂拽炫酷吊炸天 黑客編譯器,5秒你也能擁有!
※程序員段子合集 吃東西時候千萬別看 附把妹指南
※程序猿必修課之數據結構
TAG:java學習吧 |