主要是因为JDK8及以上版本,IDEA不再支持提供文件模板

所以,JDK8之后,要修改点配置,不然IDEA生成的模板文件都是空的

解决办法是:

IntelliJ IDEA 2016.3.7\bin\idea64.exe.vmoptions文档,用notepad++编辑文档

(注意:idea64.exe.vmoptions是对应windows的版本,x64的)

然后粘贴下面的参数:

-Djdk.util.zip.ensureTrailingSlash=false

 

如图所示:

IDEA生成的模板文件都是空的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2021-08-31
  • 2021-10-27
  • 2022-12-23
  • 2022-01-05
  • 2021-12-23
  • 2021-08-25
相关资源
相似解决方案