Giter Site home page Giter Site logo

tripin's Introduction

Tripin

项目约定规范

  1. 不使用Valid,保证Entity的简便性
  2. 使用GetMapping,PostMapping等代替RequestMapping
  3. 用AOP概念,进行必须的前置测试
  4. 告警使用log4j排查问题
  5. 数据库字段和entity字段必须相同,保持数据的一致性,避免使用Result反复修改结果集
  6. 每个Entity都需要加toString方法,便于出现问题时打印排查
  7. 如果出现多表联合查询,使用entityVo,禁止在entity中直接添加属性
  8. 多项数据库操作前,必须在service方法前使用@Transactional确保事务能够回滚
  9. RESTful 写文档
  10. Http请求统一返回{code, msg, data}的对象,并进行统一异常处理

tripin's People

Contributors

felix2048 avatar zjdznl avatar asyouwish001 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.