Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 788 Bytes

FAQ.md

File metadata and controls

34 lines (17 loc) · 788 Bytes

FAQ 工程常见报错处理

1. java: 程序包sun.misc不存在

点击IDE左上角 File ---> Project Structure ---> Project

设置JDK 版本为 1.8

2.如何在IDEA中配置Go工程 (IDEA 商业版本)

前置条件

安装 GoLang SDK >= 1.19.6

安装 Go 插件

打开IDEA,选择"Preferences"--"Plugins",搜索Go,点击 "install",重启IDEA

install

配置 GOROOT

GOROOT

(无需配置GOPATH!!)

配置 GO Modules

打开IDEA,选择"Preferences"--"Language & Frameworks",进入到Go下面的GO Modules,勾选 "Enable modules integration" 保存修改。

Modules

(代码中出现红色依赖报错,请检查Enable modules integration是否开启)