Skip to content

实现Pojo配置数据源 #4

Open
@oldratlee

Description

@oldratlee

Pojo(强类型)是unicorn的首选使用方式,其它的数据源都是弱类型的。

使用getParameter返回Map可以用来表示弱类型数据。

即先读属性(getXxx),如果没有,再读getParameter中的值。

如果对应的Parameters中有属性名的Key,可以根据需要:

  • 日志 警告,因为推荐使用强类型配置。
  • 抛出异常,禁止这种不推荐的行为

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions