将 dao 类方法公开给 webservice java
我有用于数据库操作的 DAO 类。我想使用 JAX-WS 将我的 DAO 类方法公开给 Web 服务。将 DAO 类方法公开为 Web 服务方法是个好主意吗?请帮我。
I have DAO classes for my DB operations . I wants to expose my DAO class methods to a webservice using JAX-WS. It is a good idea to expose DAO class methods as a webservice methods? Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常这不是一个好主意。
保持架构分层:
在中间(dao 和 API 之间)通常有一个业务层。
Usually it is not a good idea.
Keep your architecture layered:
In the middle (between the dao and API) you usually have a business layer.