spring mvc learn process

1. first is handle mapping: 

2.second is controller: but 

3.it is viewresolve: there is main 3 :one is InternalResourceViewResolver,it is reflact the suffix and prefix to become  "web-inf/pages/XXX.jsp",the other is resourcebundleViewResolver it is support a properties file to turn the jsp file and the class ,BTW: it not support  "XXXView.class" but for "XXXXview.(class)"

4.other : to config the web.xml ,some error appear ,for servlet 2.4, you should config the listener not the servlet in you configration. and  if you use the session you should add the JTA.jar file

 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章