官术网_书友最值得收藏!

Introduction

Before we start coding, we need a project. Vaadin projects can be created in many ways using several tools and languages.

In this chapter, we will show how to make projects that support three languages: Java, Groovy, and Scala.

First, we will make a simple Java project in Eclipse. Then, we will continue in a more sophisticated way and make a Vaadin application by using Maven and Gradle. Maven is a tool providing a better build process and it uses XML for the description of project, definition of dependencies, plugins, and so on. While Gradle is the next generation of build tools. Gradle combines both Maven and Ant, taking the best from both tools. Maybe the most exciting thing about Gradle is that it is uses Groovy instead of XML.

After we know how to make the project from Maven archetype, we will make the same project in IntelliJ IDEA.

Scala is a programming language that integrates features of object-oriented and functional languages. The server-side part of Vaadin runs on JVM and therefore we can write Vaadin applications in Scala language.

Grails is a web application framework that takes advantage of the Groovy language. Grails follows the convention over configuration principle. When we make a new Grails project, we automatically get a persistent model, service, controller and view layers, environments, and localization. We will have a look at how to create a new Grails project and how to use Vaadin instead of a Grails view layer.

主站蜘蛛池模板: 汝城县| 桃园市| 错那县| 寿光市| 嘉义市| 许昌县| 临沧市| 龙里县| 沽源县| 砀山县| 江华| 石台县| 利川市| 普宁市| 瓦房店市| 丹江口市| 曲麻莱县| 宜川县| 华蓥市| 中山市| 广东省| 凉城县| 文化| 湘阴县| 宣城市| 赤水市| 民权县| 城固县| 淮安市| 连州市| 元朗区| 洞头县| 泌阳县| 铜鼓县| 静海县| 广丰县| 扎囊县| 杭锦后旗| 本溪市| 涿鹿县| 清丰县|