How to create a jsp project in eclipse and set the default encoding format of the jsp file, the design of the database in the project, and the configuration environment of tomcat in eclipse

1.  How to create a jsp project in eclipse .

Create a jsp project.

In the properties of window, set the default encoding format of the file

1. Database link

First of all, I talked about the relationship between tables, one-to-one (one-to-one is a special one-to-many table association), try to make the relationship between the tables one-to-many, and try not to be many-to-many (if two tables are If many-to-many, the third chapter table will be automatically generated)

When setting the primary key of the table, try to set meaningless fields, such as the ID field in each table, do not set the student ID, serial number, etc. as the primary key, otherwise the modification will lead to confusion of the tables in the database.

The number of the task should not be set to int type, but should be set to varchar type. Each company and each company's employee number has its own way, not necessarily all numbers, but also letters and so on.

The dictionary table should mark the status of the task as much as possible. It is convenient to hide which value. There is no need to modify the SQL statement. Just modify the status directly in the table. The dictionary table is also a drop-down menu.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325693550&siteId=291194637