IDEA相关

2021-07-16  本文已影响0人  loongod

一、使用System.out.println("中文") 打印中文显示问号(?)

使用 maven 项目,配置了本地 tomcat 后,调用 System.out.println 打印中文,显示的是

idea 安装包中找到 idea.vmoptions 文件

idea.vmoptions.png

修改如下:

然后在tomcat配置如下

tomcat配置.png

二、解决在IDEA上提示 wrong tag 警告

在创建的注释时,idea 总是会发出警告提示。
最好的办法使用快捷键: alt + enter 选择 add to custom tags。这样idea就会记忆了。


三、关于spring-boot-starter-parent报红的解决方法

maven 项目中若要导入SpringBoot,父级依赖的spring-boot-starter-parent通常都会出现Project 'org.springframework.boot:spring-boot-starter-parent:x.x.x' not found的错误提示。

解决办法:File -> Invalidate Caches / Restart... -> Invalidate and Restart就能解决了。

上一篇 下一篇

猜你喜欢

热点阅读