何时在Hybris中定义*-spring.xml和*-beans.xml上的bean?他们之间有什么区别?
例如,您定义一个新的实体Color以将其存储在您的数据库中.
要定义诸如ColorDao或ColorService之类的spring bean,您将使用yourextension-spring.xml.
在ColorDao或ColorService中,您可以使用模型类.在这种情况下,它将是ColorModel,但是在编写ColorFacade时,您无法将模型类暴露给外部世界,您需要将其转换为某些DTO.所以你去yourextension-beans.xml并在那里创建ColorData类.
在all all期间, 从yourextension-beans.xml生成ColorData.
| 归档时间: |
|
| 查看次数: |
2372 次 |
| 最近记录: |