I wanted to know if Spring MVC can be used with a different JVM language than Java, for example. Groovy or Scala. Or can Groovy run only on Grails?
Also, if possible, is that something people often try to try, or just stick to a traditionally used structure?
Spring works great with scala because scala compiles to a regular .classfile, which is equivalent Java bytecode. I use Spring and scala all the time. You can even use Spring's XML extensibility to add support for scala-specific type types, for example:
.class
<bean class="my.scala.Class"> <property name="listProp"> <scala:list value-type="java.lang.Integer"> <value>1</value> </scala:list> </property> </bean>
, spring , Groovy. : http://static.springsource.org/spring/docs/2.5.6/reference/dynamic-language.html
scala; , . , JSP (, , , spring mvc), "" scala, scala java-. scala 2.8.0, .
Grails Spring MVC, . Scala Spring MVC. , Scala Spring MVC - Scala, .
Scala, Spring Groovy. , :)
Spring Scala, Scala , , (, Spring) .
, Scala , , Java. Scala Java. , Scala , Java, Java , Spring.
Well, what about writing business logic in scala, so the functional way scales well in multi-core environments and allows the rest to be handled by Spring and Hibernate. I think this is a very good way to get the best of both worlds. Of course, it can be used as a web application platform, but I think Spring is more mature and has more features. But business logic is where the ball rolls, so Scala and FP can do it better than imperative java.
Right?