Integration of SSM framework (Maven example)

Many friends report errors in Maven because of POM file dependency

Today, I quickly set up the SSM framework to ensure that Tomcat has no requirements in the JDK7 or jdk8 environment. However, if you want to use jdk8, you'd better start Tomcat with the server in run as. Otherwise, if you start with Maven build, enter the browser address to enter the JSP page, and you will report an error that JSP cannot be compiled. This is because Maven comes with Tomcat6 The JDK version conflicts with Tomcat. The environment that causes JSP compilation has problems.

1、 Import correct dependencies

2、 Establish entity classes and corresponding mappers and XML

3、 Create a service and its implementation class

4、 Perform JUnit test to ensure application config The configuration of XML and mybatis are correct

5、 Basic configuration XML file of SSM

application-config. XML configuration file

application-mvc. XML configuration file

Log4j configuration file

mybatis-config. XML configuration file

web. XML configuration file

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>