Groovy environment installation
Unzip the compressed package, enter the bin directory, execute
./groovy -v
You will see the following information:
hello world
Still in the bin directory, use the built-in console to test, execute the following command:
./groovyConsole
You will see that the groovy console client starts.
There are two ways to output the log. As shown in the figure below, the first one can print directly using println, or you can use the java method System.out.println () to output the log.
Use inteliJ IDEA to create groovy project
After the selection, as shown below:
Click Next: