5.创建一个SpringMVC mybatis项目:
下部我们做一个SpringMVC mybatis的例子,我们还是继续刚才项目的底子。参见我的mybatis那一章。这个例子的pom.xml照样可以胜任TransactionManager.(见本章目录下mavenWeb5)
index.html: <html> <head> <title>Spring 3.0</title> </head> <body> <a href="helloa.do">Say Hello</a> </body> </html> <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <servlet> <servlet-name>spring</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <load-on-startup>1</load-on-startup>
更多请见:https://blog.csdn.net/qq_44639795/article/details/97650266