jenkins构建中提示:1.5 中不支持 switch 中存在字符串
pom.xml文件添加:
<plugin> <version>3.8.1</version> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin>