使用 Spring 还是使用 Spring 集成的单独项目?
最近我尝试使用Spring提供的QueryDSL和AMDQ。然而,我发现 Spring 只是将它们集成到自身中,而像 AMDQ 之类的一些集成还没有完成。我是 Spring 的新手,但我想知道使用 Spring 有什么好处?在我看来,Spring 并不比单独使用这些项目更容易。
Recently I am trying to use QueryDSL and AMDQ offered by Spring. However, I found Spring just integrates them into itself and some integration like AMDQ stuff is not completed yet. I am new to Spring, but I was wondering what's benefit in using Spring? In my opinion, Spring doesn't make me easier than using these project separately.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 Querydsl,它提供了一个很好的数据抽象层,称为 Spring Data,它支持 Querydsl 进行查询。
除此之外,Spring 还提供出色的依赖注入功能和 AOP。除非您想使用其他东西(例如 EJB 或 Guice)进行连接,否则 Spring 作为集成层是一个非常好的选择。
In the case of Querydsl it offers a nice Data abstraction layer called Spring Data which supports Querydsl for querying.
Other than that Spring offers also excellent dependency injection functionality and AOP. Unless you want to want to use something else for wiring like EJB or Guice, Spring is a very good choice as an integration layer.