摘要:
SpringBoot 2.1.1集成redis,在启动时报错信息如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisConnectionFactory' de 阅读全文
摘要:
代码实现1 public interface Observer { void update(Subject subject); } public class ObserverA implements Observer{ private int myState; //myState需要跟目标对象的st 阅读全文
摘要:
代码实现 public interface State { void handle(); } /** * 空闲状态 * @author bzhx * 2017年3月15日 */ public class FreeState implements State{ @Override public voi 阅读全文
摘要:
代码实现 public abstract class BankTemplateMethod { //具体方法 public void takeNumber(){ System.out.println("取号排队"); } public abstract void transact(); //办理具体 阅读全文
摘要:
代码实现 public interface Strategy { public double getPrice(double standardPrice); } public class NewCustomerFewStrategy implements Strategy{ @Override pu 阅读全文