With the first example, we have a little perceptual understanding of the spring framework, and now we have a complete description of the actual application of the spring framework through a specific login example! The IDE in this article is eclipse!
1. The Web server we use is Tomcat, so create a new catalog spring under D:\tomcat\webapps\webapps, and create a new two files below for Eclipse to import this project.
6. Under the Web-inf RC New package action, under the action package to create a new two Java files, note that in the project to import all the jar packages under E:pring\dist, otherwise the eclipse hint can not find the class file!
Logininfo.java
Package action;
public class Logininfo {private string username, private string password, public string GetPassword () {return password; public void SetPassword (string password) {This.password = password;} public String GetUserName () {return username;} public void Setusername (String username) {this.username = username;}}
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.