Grails 4.0.0 第二个里程碑版本 Milestone 2 已发布。
作为一名 Javaer,我们知道 Java 中的许多现代 Web 框架往往比所需要的更复杂,并且不遵循 DRY 原则。
像 Rails 和 Django 这样的动态框架为打造更现代 Web 应用程序的思维方式提供了参考。Grails 正是以这些概念为基础,大大降低了在 Java 平台上构建 Web 应用程序的复杂性。不过它真正地与众不同之处在于通过在已有的 Java 技术(如 Spring 和 Hibernate)而进行构建。
Grails 作为一个完整的 Web 框架,试图通过核心技术及其相关插件来解决许多 Web 开发难题。
-
GORM - An easy to use Object Mapping library with support for SQL, MongoDB, Neo4j and more.
-
View technologies for rendering HTML as well as JSON
-
A controller layer built on Spring Boot
-
A plugin system featuring hundreds of plugins.
-
Flexible profiles to create applications with AngularJS, React and more.
-
An interactive command line environment and build system based on Gradle
-
An embedded Tomcat container which is configured for on the fly reloading
Grails 4 的新特性包括:升级依赖关系、将 Micronaut 作为父级的上下文,因此允许使用许多 Micronaut 功能,包括 HTTP 和 Kafka 客户端。