10-point technical innovation and experience summary of XP2P system

Source: Internet
Author: User

Recently in the development of perfect nine days bird xp2p system, solved a lot of technical problems, hereby summarized.

The first project development, is very important, it is to establish the development norm, the team cooperation, the development efficiency, has the very important significance.

1. Paging
Front desk Ajax asynchronous paging, with our own fupage paging component. Simple, flexible, good customization, good maintenance.
Front desk freemarker Sync paging, write your own paging macro with Freemarker.
Background paging, implements the MyBatis interceptor, automatically calculates count. Paging components only care about paging, other issues are no longer processed. Too much responsibility, difficult to maintain.

2.CMS system
Built-in set of simple enough content management system.
The main function, content, content classification, content classification can be directly a page (this function is very valuable).

3. Permission System
Background management system, built-in a set of simple enough rights distribution system.
User and role hooks, roles and permissions hooks.
Technology implementations, interceptors, annotations, and permission menus have been processed at the foreground URL level and behind-the-scenes approach level.

4. Backend Management System
Permissions menu, generated automatically based on user permissions.
Right iframe, hosting content, local refresh, easy to embed into other systems or pages.

5. Three modes of interaction between systems
WebService, JSON (JSONP), HTTP.

6. Front-End Code separation
HTML, CSS, JS as separate as possible.
When you deploy, you can switch to CDN version of CSS and JS,CSS and JS are compressed processing, JS may be confused.

7. Simple and flexible front-end JS components and code
Date, dialog box, layout, all using the industry-renowned JS components.
Not using large, complete solutions, such as ExtJS, is not flexible enough.

8. Parameter Configurable
The parameters are configured in 3 ways: Tomcat configuration at startup, properties property file configuration, and background management modifications.

9. Code Instrumentation
JS code, CSS style, Java features, text messaging, mail sending, etc. can be reused within the project, or later in the project reuse.
Development architectures and specifications, development processes, and various components can be reused in the future to improve efficiency.

10. Distributed session
Login with cookies and Redis, separate login system, can be shared.

For more exciting content, please pay attention to the nine-day bird official blog, Ray Fansunion space, CSDN blog.

Reprint please specify: Nine days bird official blog? 10-point technical innovation and experience summary of XP2P system

10-point technical innovation and experience summary of XP2P system

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.