![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常处理方法
Ricu_LiuJie
这个作者很懒,什么都没留下…
展开
-
解决IDEA控制台输出中文乱码问题
解决方法一:1.打开tomcat配置页面,Edit Configurations。2.在配置项VM options文本框中输入-Dfile.encoding=UTF-8,添加一条JAVA_TOOL_OPTIONS,点击Apply,OK即可。3.尝试重启Tomcat。解决方法二:1.打开idea本地安装目录中bin文件夹下的idea.exe.vmoptions和idea64.exe.vmoptions这两个文件。2.分别在这两个文件内容的末尾添加-Dfile.encoding=U原创 2021-12-05 14:45:11 · 12740 阅读 · 9 评论 -
IDEA创建applicationContext.xml文件没有Spring Config选项
解决办法:查找一下pom.xml文件中spring-context依赖是否标红,有可能是因为并没有成功导入spring-context依赖!<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0原创 2021-11-25 19:59:13 · 1801 阅读 · 0 评论 -
spring框架:pom.xml变红
Dependency ‘org.springframework:spring-context:5.0.2.RELEASE‘ not found●在学习Spring框架的时候,对于XML配置文件出现,红色问题●解决办法:File → Settings → Maven(将maven配置好)●最后,选择项目的pom.xml 右键maven → Download sources....原创 2021-11-25 19:51:34 · 10089 阅读 · 3 评论 -
导入已经建好的Maven项目,No valid Maven installation found. Either set the home directory in the configuration
导入已经建好的Maven项目时,左下角出现如下错误信息:Error running ‘ssm [clean]’: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.原因:Maven未配置成功修改:...原创 2021-11-24 13:37:43 · 1035 阅读 · 0 评论 -
Typora编辑的.md文档突然消失或未保存,恢复方式
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar原创 2021-11-20 11:11:25 · 3246 阅读 · 10 评论 -
如何将CSDN的文章导出为pdf?
如何将CSDN的文章导出为pdf?进入到想要导出的文章界面,按功能键fn+f12进入到控制台,输入如下代码按enter运行选择打印,就可以得到pdf格式的文件了。(function(){$("#side").remove();$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce, #ad_cen, #ad_bot").remove();$(".nav_top_2011, #head原创 2021-11-20 14:25:28 · 824 阅读 · 0 评论 -
解决Maven项目中Test时出现的Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
错误信息:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project java01: There are test failures.Please refer to E:\JavaDaiMa\java01\target\surefire-reports for the individual test results.解决方法:打开该原创 2021-11-22 20:26:28 · 4175 阅读 · 5 评论