ourslook JAVA development specification

Comply with Alibaba Code Specifications

Development specification, expressly prohibited

  1. It is forbidden to write query statements in the for loop. If there is a little more data, it will be a little stuck;
  2. The code written by yourself must be commented to clarify the meaning of all parameters. If it is an enumeration parameter, it must be said that the value of the situation is returned. Required and non-required items must be clearly explained. Mixed English and English, except for a few special effects projects, must be reported first; the written interface must be subject to all illegality judgments and necessity judgments, and the pagination cannot be lost.
  3. Reinventing the wheel is prohibited.
  4. Code blank lines must be standardized, and random blank lines are prohibited; appropriate blank lines are required for different logics; logo logs must be standardized, and code is prohibited from using system.out to output logs at will.
  5. The status code system of the business class used globally by the project must be constant in the configuration class, and it is forbidden to directly write 1, 2, 3, and 4 in the code; if the code comments are modified, they must be modified in all places;
  6. Regarding the development of project data rights, the data rights should be developed later, and the whole system should be written in a unified way to facilitate copying and reading by others.
  7. The android ui must be qualified, and the java interface must be qualified; the java interface must be qualified (1) All interface swagger must have default values, including token (2) If the returned interface cannot return map, please encapsulate the entity by yourself (3): whether it is returned Try not to use map for the app, front-end interface or interface to connect with third parties, please write the entity class in advance.
  8. The service can only be called through the service, and other classes cannot be used directly through the dao

Guess you like

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