SPRINGMVC Environment Building (XML version)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.