Giter VIP home page Giter VIP logo

springboot-designmode's Introduction

SpringBoot-DesignMode

Java 23种设计模式Demo案列大全 ☞ SpringBoot框架

【每种设计模式都会标记不同的package,每种设计模式例子尽量全、尽量通俗易懂、尽量符合JavaDoc规范】

如任务链测试说明:

   /**
     * 通过两种查询对比,你会发现:
     * 1、查询结果都一样
     * 2、没有使用任务链设计模式的service层代码非常臃肿,而使用了任务链的service层看起来很棒
     * 3、如果一个service只干一件事的话,无疑第一种service干了很多事情,比如把电脑组件的加载都放在了当前类中
     *    一旦这个service的代码越来越多,后期维护起来会很困难,不如每个组件的加载单独交给一个任务来处理,
     *    反正数据和参数都是固定的【这句话很重要,值得深思,如果参数不固定,要怎么改造呢? 自己尝试吧...】
     * 4、使用了任务链的service,在查询结果的时候,只要知道参与此次查询的任务都有哪些,任务之间的衔接关系是什么
     *    至于任务链中的每个任务都干了什么,不在当前service层中体现出来
     *    总之,给我数据和条件,剩下的你就不用管了,我最后给你返回正确的结果就行了
     */

更多内容请关注我的CSDN博客:https://blog.csdn.net/Appleyk

本项目博客地址:https://blog.csdn.net/Appleyk/article/details/83787334

springboot-designmode's People

Contributors

kobeyk avatar

Stargazers

 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.