找到对应目录添加一串–Darchetype=Internal
在Runner中的VM Options选项里面添加:“-DarchetypeCatalog=internall”,
添加properties key:archetypeCatalog value:Internal
之后选择Apply->ok.
![在这里插入图片描述](https://img-blog.csdnimg.cn/dccbe9dfa216473daf500433ffc2a0b9.png
选用maven的webapp 而不是coco的
原因是由于TLSv1.1 协议不安全, 出于PCI 安全标准的原因, 从2018-06-18起, maven Sonatype 中央仓库不再支持 TLSv1.1 以及以下的协议版本,
解决方案:
方案1 : 升级 jdk 到1.8
jdk1.8 TLS 1.2 默认是 enable ,不会出现这个异常
方案2: 通过添加 -Dhttps.protocols=TLSv1.2 , 配置 java runtime 参数,来 enable TLS 1.2