java - 业务逻辑和服务

标签 java architecture service business-logic business-logic-layer

在三层/多层架构(UI/逻辑/DAO/域模型)中,服务是否可以被视为属于业务逻辑层,或者它们是否位于单独的位置?

最佳答案

您可能会发现像“服务”这样相当通用的词对不同的人来说意味着不同的事情。

我认为服务是编排业务对象(或其他服务)公开的逻辑以实现有用任务(例如业务流程)的东西。因此,对我来说,服务是业务逻辑层的消费者(可能还有日志记录等支持方面的消费者)。

关于java - 业务逻辑和服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1863987/

相关文章:

java - 矩形以外形状的按钮

java.lang.NumberFormatException : For input string when using scanner to read the file 异常

architecture - 设计社交网络(twitter、fb 新闻提要等)时的“推送”与 'Pull '

android - 尝试在 iOS 应用程序上安装 "clean architecture"

ubuntu - 无法在 Ubuntu 上将 ElasticSearch 作为服务运行

java - INSERT INTO 在 Ucanaccess 中给出错误

Java POI : How to read Excel cell value and not the formula computing it?

Linux 配置数据 : standard way of storing application settings?

service - Angular 服务应该有状态吗?

c# - "Restart"ASP.Net Core 中的单例服务