1. Definition and environment configuration of Groovy

1. Domain specific language DSL (domain speciflic language)
solves the problem of a specific field of computer. DSL language is developed vertically and deeply, and system programming language is developed horizontally and broadly , such as java.
h5\uml\matlab\groovy is a branch of DSL, which seeks to solve specific problems.

2. Groovy
is an agile development language based on JVM, which compiles files into .class files for execution, which is an extension of java.
Groovy can be interpreted and executed, and it can be executed in a script. Combines many powerful features of python\ruby\smalltalk (process-oriented programming).
Groovy can be perfectly combined with java, and can use all java libraries. But python needs to be re-learned.
Syntactically, it supports a new generation of language features such as dynamic typing and closures. Seamlessly integrate all existing java class libraries. Both object-oriented programming and process-oriented programming are supported.
Advantages: A more agile programming language that can write more powerful functions with less code. Getting started is very easy and very powerful, either as a programming language or as a scripting language. Students who are proficient in Java will be very easy to master Groovy

3. Steps to
build the environment 1. Build a JDK environment
2. Download GroovySDK from the official website (http://groovy-lang.org/). In the
bin directory: groovysh is to interpret and execute groovy scripts, and groovyc is to compile groovy language files into bytecodes File, groovy is the compiled class codec file
doc–>html–>api and official documentation.
3. Configure the groovy environment variable
mac: unzip it to a directory and add the bin directory in .bash_profile
Go to the back of the path and make it effective immediately source ~/.bash_profile windows: Unzip to a directory: D:\oliver\oliver_common_work_tools\apache-groovy-sdk-3.0.7\groovy-3.0.7, and configure this directory The environment variable GROOVY_HOME is added to the path (%GROOVY_HOME%\bin).
4. Check if the installation is successful
Insert picture description here

5、IntelliJ IDEA开发工具
	preferrences(setting)-->plugin-->groovy检查是否安装插件,如果没安装则点击安装。

Insert picture description here

Author: Cangshuipu witch cloud
blog: http: //blog.csdn.NET/amir_zt/
more original, please indicate the source, thank you.
https://blog.csdn.net/amir_zt/article/details/113431920

Guess you like

Origin blog.csdn.net/u011635351/article/details/113431920