In order to test the Javaweb project, I did an update on a single table.
1. Add Group
If you need the source code of this project, welcome Dabigatran: 438255459
2. Unzip
Unpack this package, and then use Eclipse to open the project, as far as Tomcat is concerned, I will default you.
3. Start
Because I even am my native database SQL Server, so you need to change your SQL connection information.
4. Database Building Tables
Use Master;if EXISTS (SELECT * from sysdatabases WHERE name= ' cms ') DROP DATABASE CMS; Gocreate DATABASE Cmsgouse CMS; GOif EXISTS (SELECT * from sysobjects WHERE name= ' admin ') DROP TABLE [admin]; Gocreate TABLE [Admin] ( ID INT IDENTITY (LoginName), NVARCHAR () not NULL UNIQUE, [Password] NVARCHAR ( Not NULL, realname NVARCHAR (a) not NULL, Lastloginip NVARCHAR (() null, PRIMARY KEY (LoginName)); go--add data to Administrator table Admininsert into admin (loginname,[password],realname) VALUES (' zxx ', ' zxx ', ' Zhou Xingching ')
5. Start the project
Click on the project name, right--->run as--and Run on Server. You can see the legend as shown:
"Click to enter", you can work on this table.
Legend on the above, if you want to test, look at the source, download it yourself.
Java Web Single-table operations