Groovy 和 Java 联合开发环境搭建
1. 在主 pom 的 properties 中加上 <groovy.version>2.5.2</groovy.version> 用来覆盖 spring boot 自带的 groovy 版本
2. 在主 pom 中的 build > plugins 部分加上交叉编译插件
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>
<compilerArguments>
<jav