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.
我最近一直在阅读有关 Groovy 的文章,并注意到 Spring 支持 Groovy?我想知道它们是否可以在同一个 Web 应用程序中共存?如果一个人做的事情比另一个人做得更好,可能会使用两全其美?如果是这样,有人有这方面的好例子吗?
一流的 Web 框架之一(Grails,一种 Groovy on Rails)基于 Groovy、Hibernate 和 ... Spring Framework。所以答案是肯定的。另请注意,对于 Groovy 和 Spring 框架,SpringSource 都是主要的开发公司。
Groovy 是一种语言,而 Spring 是一种框架。它们分别运行,并且由于 Spring 是一个 Java 框架,Groovy 可以使用它。