简体   繁体   English

Grails框架的产品可以归类为基于Java的Web应用程序吗?

[英]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.

相关问题 为基于 Java 的 web 应用程序生成 GUI - Generate GUI for Java-based web application 使用Grails为基于Java的业务对象构建Web UI? - Using Grails to build web UI for Java-based business objects? 如何创建基于Java的Play框架应用程序(非Scala) - How to create a Java-based Play Framework Application (Not Scala) 我可以在基于Java的heroku应用程序中使用本机应用程序吗? - Can I use a native application in Java-based heroku app? 您如何在运行缓慢的基于Java的Web应用程序上强制进行堆转储,以找出发生这种情况的位置? - How can you force a heap dump on a java-based web application that goes slowly in order to figure out where that slowness occurs? 基于Java的Android应用程序 - >切换到Scala - Java-based Android application -> switch to Scala 基于Java的2路聊天应用程序不起作用 - Java-based 2 way chat application not working 使用JNA和Windows sendMessage API从基于Java的Web应用程序更改Windows XP中的焦点窗口 - Changing the focused window in windows xp from java-based web application using JNA and Windows sendMessage API 是否可以在基于PHP或JAVA的在线Web应用程序中从客户端到服务器录制音频? - Is it possible to record audio from client to server in PHP- or JAVA-based online web application? 无法关闭在Spring Tool Suite中创建的基于Java的Web服务 - Can not close a java-based web service created in Spring Tool Suite
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM