Fix problems encountered

Step 1: Click "Modify"----Enter the query method to find the entity class based on the id

Question 1: The id from the front end to the back end is of type HTMLInputElement, as shown in Figure 1

Solution: Modify + id.value or document.getElementById("id").val() in the front-end modify () as shown in Figure 2

Question 2: The id passed by the front end to the back end is of list[0].id type, which is debug. When starting the project, the id type is: ${list[0].id} instead of the normal id: "1", as shown in the figure. 3

Solution: When the front end transmits value to the back end, value = "<c:out value="${list[0].id}"/>"

Question 3: The front-end passes the name sex to the back-end normally, but the front-end page displays an error as shown in Figure 4

Solution: When the front end transmits value to the back end, value = "<c:out value="${list[0].name}"/>" as shown in Figure 5

Step 2: Click "Save"----Enter the saving method

Question 1: SQL error as shown in Figure 6

Solution: The last item cannot be included, as shown in Figure 7

Guess you like

Origin blog.csdn.net/xy58451921/article/details/129582314