方式一:在maven的主配置文件中指定创建工程时使用jdk1.8版本

<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>

方式二:创建项目后自定义

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>

最新文章

  1. 《BI项目笔记》SSAS部署时发生的问题——元数据管理器中存在错误 解决办法
  2. 区间dp的典例
  3. &lt;?php $sql = &lt;&lt;&lt;EOF 。。。。EOF;?&gt;这种写法是什么意思
  4. git 在苹果系统中的一些命令
  5. MvcPager分页控件以适用Bootstrap
  6. CentOS7.2安装jdk7u80
  7. git自动部署到服务器
  8. 网络编程基础【day09】:socket接收大数据(五)
  9. oracle 子查询中null的问题(in 和 not in)
  10. c++ 可变参数模板
  11. 第16月底18天 phpstudy设置
  12. redis参数改进建议
  13. noip第9课资料
  14. 蒙特卡罗(Monte Carlo)方法简介
  15. ubuntu下安装h2数据库
  16. Hibernate中用left join(左外连接)查询映射中没有关联关系的两个表记录问题
  17. git的使用(入门)
  18. protobuf编码
  19. ios开关按钮
  20. ConcurrentHashMap的使用

热门文章

  1. YC-Framework版本更新:V1.0.5
  2. BAT经典面试题之redis的热KEY问题怎么解决
  3. ssh 信任关系无密码登陆,清除公钥,批量脚本
  4. makefile 编译多个目标
  5. Linux下的5种I/O模型与3组I/O复用
  6. 10分钟了解代码命名规范(Java、Python)
  7. CF1399F Yet Another Segments Subset
  8. 线程池与Callable接口
  9. bom案例2-弹出层
  10. Android总结【不定期更新】