[英]Can the product of Grails framework be class as Java-based web application?
When I search for Java frameworks, one of the popular result is Grails. 当我搜索Java框架时,最受欢迎的结果之一就是Grails。 However, from what I can understand it uses Groovy as the language which is similar to Java.
但是,据我了解,它使用Groovy作为类似于Java的语言。 Does this similarity grant me to call the use of Grails as Java-based web application?
这种相似性是否可以使我将Grails用作基于Java的Web应用程序?
This is not about Groovy being similar to Java, but Groovy being a language that compiles to the JVM. 这并不是说Groovy与Java类似,而是因为Groovy是一种可编译到JVM的语言。 So from a JVM perspective, it does not matter if it is Java or Groovy, they both generate .class files.
因此,从JVM的角度来看,无论是Java还是Groovy,它们都将生成.class文件。 Because of that, Groovy programming can make use of all java libraries , so Grails takes advantage of this to be based on Hibernate, Spring and other Java frameworks.
因此,Groovy编程可以利用所有Java库,因此Grails可以利用它基于Hibernate,Spring和其他Java框架。 So for me, the answer is Yes, you can say Grails is a Java based web application.
所以对我来说,答案是肯定的,您可以说Grails是基于Java的Web应用程序。
如果您因为托管公司表示可以托管基于Java的Web应用程序而提出此问题,那么我认为可以说Grails应用程序是基于Java的Web应用程序。
From wikipedia: "Grails is an open source web application framework that uses the Groovy programming language (which is in turn based on the Java platform)". 摘自Wikipedia:“ Grails是使用Groovy编程语言(其又基于Java平台)的开源Web应用程序框架”。 I believe this grants you to call it a java based web application, or better yet, as answered above, a JVM based web application.
我相信这可以使您称其为基于Java的Web应用程序,或者更好的是,如上所述,基于JVM的Web应用程序。 It is good to realize that due to this you can use existing java libraries with grails, and also whenever necessary use java source code for your development .
很好地意识到,由于这个原因,您可以将现有的Java库与grails一起使用,并且在必要时也可以使用Java源代码进行开发 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.