Coder Social home page Coder Social logo

kotlin-springboot-demo's Introduction

Kotlin Springboot Demo

start

  1. 首先如果是在windows系统上使用docker,那么mysql容器挂载的my.cnf会被修改权限,导致容器内会忽略该配置,需要进入容器cd etc/mysql,然后修改权限chmod 644 my.cnf ,然后再重启容器,此时配置才生效。

Restful API

MVC Architecture

  • controller layer provide api
  • facade layer provide business logic
    • facade repository layer provide complex (business level) querydsl function
  • service layer provide database operations
    • repo layer provide jpa function
    • repository layer provide querydsl function
    • mapper layer provide mybatis function

Json Serialize

  • SpringMVC use Jackson as default
  • Some part that need manually converter between json and object, such as unit test, use Gson.

Json Serialize Library Comparison

  • Serialize Single Object Performance: Fastjson > Jackson >> Gson
  • Serialize Large Object Performance: Jackson >> Fastjson > Gson
  • Deserialization Single Object Performance: Fastjson > Jackson > Gson
  • Deserialization Large Object Performance: Fastjson > Jackson > Gson

Unit Test

  1. @Rollback or @Transactional is not necessary, @DataJpaTest default apply @Transactional.

kotlin-springboot-demo's People

Contributors

ahuang0107 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.