Building SSM project: using the framework spring MVC mybatis



Create a maven project

Add dependency: you can choose to add it according to your own needs


Spring related configuration and integration mybatis related configuration: applicationcontext.xml

<? xml version="1.0" encoding="UTF-8"?>

Web.xml related configuration

<web-app  xmlns:xsi= " " xmlns=" "

MVC related configuration, configuration view parser, configuration includes JSP view parser configuration, but also freemaker view parser configuration, according to the need to use

<? xml version="1.0" encoding="UTF-8"?>

This work adoptsCC agreementReprint must indicate the author and the link of this article