获得一个依赖的最简单方式就是直接调用构造函数创建对象。
The naive way to obtain a dependency is to create it directly by calling its constructor.
这样,通过声明这种类型的变量,可以直接把构造函数调用的结果分配给对应的变量。
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable.
只要调用or g . apache . velocity . VelocityContext类的普通构造函数就可以创建直接可用的velocity上下文。
An immediately usable velocity context is created by simply calling the trivial constructor of the org.apache.velocity.VelocityContext class.
应用推荐