Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我们可以定义一个全局路径,用于所有包下的所有结果。
对于不同的结果,我有不同的路径,因此,是否可以明智地使用 resultPath 包?
或者有什么可以帮助我实现这一目标的吗?
显然,我不想在每个结果中写入完整的结果位置,如果位置发生变化,我也不想在每个地方都进行更改。
一种解决方法是逐类使用@ResultPath;
@ResultPath
将其应用于一些abstract baseActions,每个包一个。
abstract baseAction
所有其他操作将扩展其中一个<package>,继承 ResultPath 设置。
<package>