- 博客(11)
- 收藏
- 关注
原创 简单工厂、工厂方法和抽象工厂之间的区别
简单工厂模式又叫做静态工厂方法模式(static Factory Method pattern),它是通过使用静态方法接收不同的参数来返回不同的实例对象。Product接口:定义要创建的产品对象的接口ProductAProductBProductC产品类:实现产品接口,具有产品接口特性的具体产品简单工厂:只有一个工厂,通过静态方法创建具体的产品对象client客户端:客户端有多个,每个客户端可以通过简单工厂来创建具体的产品对象。
2023-12-11 03:37:00
42
1
原创 Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following: If you want an embedded database (H...
2021-06-01 23:20:44
39
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人