IDEA 2021 个人问题汇总及解决方案(缓慢补充中)
目录
- IDEA 2021 个人问题汇总及解决方案(缓慢补充中)
-
- 1.屏蔽 .idea 与 .iml 等目录或文件
- 2.Cannot download 'https://start.spring.io': connect timed out
- 3. org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 2
- 4.http://localhost:6666/ ERR_UNSAFE_PORT
- 5.Could not find acceptable representation
- 6. Failed to start bean ‘documentationPluginsBootstrapper’;
1.屏蔽 .idea 与 .iml 等目录或文件
在使用 IDEA 时有许多对于我们 coder 来说一点都没用的目录或文件,例如:.idea、.iml、.git 等等。可以通过 IDEA 提供的设置去屏蔽/忽略这些文件,具体操作如下:
操作步骤
1.File -> Settings -> Editor -> File Types -> Ignored Files and Folders
2.点击 apply 应用即可
2.Cannot download ‘https://start.spring.io’: connect timed out
在使用 Spring Initializr 创建 Spring Boot 项目时提示 Cannot download ‘https://start.spring.io’: connect timed out
解决方案
- 更换源,将
https://start.spring.io/更换为阿里云的源:https://start.aliyun.com/ ,完美解决问题; - 关闭科学上网工具,查看自己是否处于代理上网状态,这种情况下也容易产生超时连接(Connect Time Out)
- 更换网络,使用学校校园网时常会出现一些不可描述的问题,例如 Github 打不开等等,此时需要切换为 数据流量 网络即可;
因为 start.spring.io 实际上是解析至 Github 的服务器,而本校校园网将 Github ip地址墙掉了,所以当使用校园网时,就会显示无法连接,更换数据网络之后可以正常连接 - Windows 防火墙放行 IDEA
3. org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 2
Idea 启动 Spring Boot 项目报错,看了下报错信息中有一句Caused by: java.nio.charset.MalformedInputException: Input length = 2&#