环境: 环境变量JAVA_HOME配置jdk1.8
idea配置支持lambda:
File -> Project Structure -> Modules -> Language level, 选择: 8-Lambdas, type annotations etc.
File -> Project Structure -> Project -> Project language level, 选择: 8-Lambdas, type annotations etc.
pom文件中对编译器的配置:
ROOT
org.apache.maven.plugins
maven-surefire-plugin
true
org.apache.maven.plugins
maven-compiler-plugin
3.3
1.8
1.8
true
UTF-8
org.springframework.boot
spring-boot-maven-plugin