SPRINGMVC is a web-layer framework that is part of the spring framework and is just a small module in the large framework of spring that replaces the servlet
1. Download the jar package(*)
Http://zhidao.baidu.com/link?url=guH_VTC2FKGftWBtdCW_AU_z9t5QgyGqlr-DEwkryPCNhhlySr9wJACJVJu3hRiib50j_ Gnfkqnxzr4-k2v3z5jrps1poxr3yzeb5dfthus I was based on this URL to find a compressed package, decompression after Libs will find a lot of jar package , but as long as a
Later in the http://mvnrepository.com/to check commons logging
Download this jar package
A total of
2. Build a Web Project
(1) Build a Dynamic Web project named SPRINGMVC Environment to build the--xml version, and publish the name MVC
Modify Publication name
(2) Placing 20 jar packages under Lib
(3) Find Help documentation
(4) Ctrl+f find the Web
Go to the web and find the picture below
Locate the Code box below it and copy the code into Web. xml
Be modified
(5) Establish the core configuration file
Switch Java EE into a spring environment
Create a spring bean configurarion file under Web-inf named tnlyn-servlet.xml(Tnlyn is consistent with Servlet-name in Web. xml)
In the process to check the beans, the highest version
(6) The Com.controller package is built under SRC, and there is a class named Thefirstcontroller that implements the Controller interface.
(7) Configuration Tnlyn-servlet.xml
(8) Publishing access
Success!!!
SPRINGMVC Environment Building (XML version)