gradle vs maven

gradle vs maven Dependency dependencies { implementation 'com.alibaba:druid-spring-boot-starter' } Wrapper gradle version

Hibernate for Beginners

This tutorial is for newbies who want to learn Hibernate in a quite easy way.

JavaScript ro react

from fundamental JavaScript to React

Chain of Responsibility, Command and Iterator, Mediator, Memento

1. Chain of Responsibility 当程序需要使用不同方式处理不同种类请求, 而且请求类型和顺序预先未知时, 可以使用责任链模式。当必须按顺序执行多个处理者时, 可以使用该模式。如果所需处理者及其顺序必须在运行时进行改变, 可以使用责任链模式。 AuthService AuthController 重写后

Observer, State and Strategy, Template Method, Visitor

1. Observer 当一个对象状态的改变需要改变其他对象, 或实际对象是事先未知的或动态变化的时, 可使用观察者模式。 抽签系统,摇号,发短信,发MQ消息,后面两个会随着业务调整而调整,不利于维护 interface EventListener

learning System design as a landscape architect 10

Rethink system design in a much fun way, as a former urban planner/landscape planner.

learning System design as a landscape architect 11

Rethink Location Based Service system design in a much fun way, as a former urban planner/landscape planner.

learning System design as a landscape architect 12

Rethink Location Based Service system design in a much fun way, as a former urban planner/landscape planner.

learning System design as a landscape architect 9

Rethink system design in a much fun way, as a former urban planner/landscape planner.

Builder, Prototype design pattern

1. Builder: design a DecorationPackage check my final code Builder Builder public interface Imenu { Imenu appendCeiling(Matter matter); Imenu appendFloor(Matter matter); Imenu appendTile(Matter matter); String getDetail(); } Matter => (interface)