table of Contents
One: Project browsing (the project content is listed, not very important, you can quickly browse)
1. Project structure and package structure
7. The overall idea of the front desk system
The second part: content (this part can be browsed quickly) (here is mainly the background system)
1. Introduction to the back-end system
2. JavaScript component: SweetAlert component: popup
3. New difficulties; (FileUpload file upload component)
4. Form verification (additional explanation)
Two: Points to note (this is the core of this blog)
One: Project browsing (the project content is listed, not very important, you can quickly browse)
The first part: content (this part can be quickly browsed) (here is mainly the front-end system, of course, some things are also applicable to the back-end system)
1. Project structure and package structure
2.Dao and Service
3. MVC call relationship
4.JavaBean
5. Overall realization ideas
6.Dom4j
7. The overall idea of the front desk system
The second part: content (this part can be browsed quickly) (here is mainly the background system)
1. Introduction to the back-end system
2. JavaScript component: SweetAlert component: popup
3. New difficulties; (FileUpload file upload component)
When the FileUpload component is used in the Controller: it is obtained in the way of switch;
4. Form verification (additional explanation)
Reusable form verification JS script file:
5. Specific new features
6. Modify; delete
Modification and deletion require an id number throughout;
When deleting: Ajax technology is used, pay attention to this.
Two: Points to note (this is the core of this blog)
(1) Using static guarantee, the uniqueness of xml copy in memory;
(2) JavaBean: It is not required to have a parameterized structure, especially when it has an id attribute, it is not necessary to use a parameterized structure;
(3) After a Controller accepts a request, it either forwards the request or redirects it (naturally the destination of request forwarding and redirection can be other Controllers or a front-end file); or directly [response.getWriter( ).println();】Print output to the browser;;;; In short, you can’t do nothing. . Otherwise, the request will stall here and cause problems;
(4) SweetAlert plug-in pop-up box JavaScript plug-in; FileUpload: file upload component;
(5) When modifying and deleting, the form is like [data-pname] custom attribute; when modifying, when backfilling the oil painting category, the page ready function of jQuery is used;
(6) Make more judgments and throw exceptions;
(7) Do more partial tests;
(8)……