Giter Club home page Giter Club logo

demo's Introduction

EuEast/Pandu backend engineer test.

subject

create a RESTful API web-app that persists entities in an H2 in-memory DB

Features

  • 使用aop完成日志打印,不需要在每个方法中都写日志记录的代码。
  • 使用统一异常管理,专注业务逻辑的实现。
  • 使用Hibernate Validator验证属性,验证逻辑与业务逻辑之间进行了分离,降低了程序耦合度,统一且规范的验证方式,无需编写重复的验证代码。
  • 使用mybatis-plus操作数据库相等灵活,在此基础上非常容易的实现了乐观锁,以及非常方便的实体类枚举属性映射数据库字段,无需在手动多次转换。

Getting started

mvn test -Dtest=ServerTests
mvn spring-boot:run

directory structure

       ├─main
       │  ├─java
       │  │  └─com
       │  │      └─example
       │  │          └─demo
       │  │              ├─common
       │  │              │  ├─config
       │  │              │  ├─constant
       │  │              │  └─exception
       │  │              ├─controller
       │  │              ├─entity
       │  │              ├─mapper
       │  │              └─service
       │  │                  └─impl
       │  └─resources
       │      ├─db
       │      ├─mybatis.mapper
       │      ├─static
       │      └─templates
       └─test
           └─java
               └─com
                   └─example
                       └─demo
                           ├─controller
                           └─mapper  

demo's People

Contributors

iamdingzi avatar

Watchers

 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.