Building SSM project: using the framework spring MVC mybatis

Time:2021-5-6

build

Create a maven project

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

<dependencies>

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= " http://www.w3.org/2001/XMLSchema-instance " xmlns=" http://java.sun.com/xml/ns/javaee "

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