8

javaweb新司机常见迷惑性问题合集(IDEA版) | 从今天开始种树

 3 years ago
source link: http://www.happyhong.cn/java/cklz2bvou000bxcuynxnmutl4.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

本文集合了一些新人在javaweb入门阶段可能遇到的问题,持续更新。

问题一:idea控制台中文日志乱码

解决方法1:在菜单栏找到HELP->Edit Custom VM OPtions中加 -Dfile.encoding=utf-8

在这里插入图片描述
在这里插入图片描述
-Xms128m
-Xmx2032m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
##这句
-Dfile.encoding=utf-8
Python

解决方法二:设置idea server编码。在菜单栏找到”run->editconfigration” 找到”server”选项卡 设置 vm option为 -Dfile.encoding=utf-8,如图3所示

在这里插入图片描述
在这里插入图片描述

问题二:IDEA 2020 bug IDEA 编译出现的问题 Error:5,47 java: 程序包org.springframework.web.bind.annotation不存在

在这里插入图片描述
在这里插入图片描述

解决方法:File>Settings>Build, Execution, Deployment>Build Tools>Maven>Runner>Delegate IDE…. 这个选项勾选

在这里插入图片描述
在这里插入图片描述

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK