在pom中引入gson依赖,启动spring boot项目中报错 Description:An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; but it does not exist. Its class, com.google.gson.GsonBuilder, is available from the following l
目录 引入 简单工厂 抽象工厂 Spring的bean工厂 模拟Spring工厂实现 模拟IOC 引入 假设有一个司机, 需要到某个城市, 于是我们给他一辆汽车 public class Demo { public static void main(String[] args) { Car car = new Car(); car.run(); } } public class Car { public void run(){ System.out.println("汽车正在向前跑...&quo