First paste on the project reference address: http://doc.okbase.net/fengshizty/archive/126397.html here to create the steps do not explain too much, just for the case to create a demo of some personal feelings to say. 1, The first use of the database is MySQL, the data table structure to look at the link, because the new table and insert the data is done in the console, So it's a lot of trouble. If you're just starting out with MySQL, choose your own workbench visualizer or use the Heidisql visualizer to easily create a table or insert data. 2, note these two urlhttp://localhost:8080/springmvc_mybatis_demo/user/showinfo/1.htmls http://localhost:8080/springmvc_ MYBATIS_DEMO/USER/SHOWINFOS.HTMLS Note the suffix of htmls is where to decide? is determined in <servlet-mapping> <url-pattern> in the Spring-mvc.xml file. If you do not want any suffixes, you can use/represent
Attach your own debug code: address is HTTP://PAN.BAIDU.COM/S/1NUA31JZ
MAVEN+SPRING+SPRINGMVC+MYBATIS+JUNIT+LOG4J Configuration Personal Summary