2020年8月12日

关于mysql发生[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.报错的解决方法

摘要: 今天在使用Navicat创建新表是出现以下错误: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema 阅读全文

posted @ 2020-08-12 15:36 SilenceAries 阅读(415) 评论(0) 推荐(0)

2020年8月9日

关于springboot静态资源存放位置的问题

摘要: 问题现象: 今天在使用springboot练习使用Ajax时,尝试在jsp页面内引入一个图片。 代码和文件路径如下: <img src='..img/loading.gif'/>; 按理说路径是没有问题的,并且按住Ctrl键点击路径也是可以访问到文件的,但是在浏览器访问时却无法访问文件,显示图裂: 阅读全文

posted @ 2020-08-09 10:48 SilenceAries 阅读(364) 评论(0) 推荐(0)

2020年7月21日

解决html表单提交后页面自动刷新的问题

摘要: 今天在做How2J上的一个js小练习时,发现在使用<button>按钮提交表单后,使用js改变的页面元素只是出现了一下后立即消失了。通过仔细研究才了解到: 在表单的提交按钮如果没有type属性,在点击提交按钮后页面会自动刷新,导致使用js改变的页面元素被刷新掉了。 解决方法: 使用<input ty 阅读全文

posted @ 2020-07-21 11:50 SilenceAries 阅读(6238) 评论(0) 推荐(0)

2020年7月17日

使用java批量修改文件名的一个小程序

摘要: 由于工作需要,要将一个文件夹中的pdf文件的文件名改来和另一个文件夹中的bmp文件的文件名一致,其中两个文件夹中的相关文件的文件名中有一部分是相同的。 代码如下: import java.io.File; public class FileNameUtil { public static void 阅读全文

posted @ 2020-07-17 23:05 SilenceAries 阅读(326) 评论(0) 推荐(0)

2020年7月4日

关于mybatis报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的解决方法

摘要: 今天在练习使用springboot通过mapper和xml方式整合mybatis时发生报错,通过百度大佬们的解决方法发现都不行。最后发现是我的xml文件没有按照传统的maven架构进行放置。 因为springboot使用的是maven架构,xml文件必须放到src/main/resource下才能被 阅读全文

posted @ 2020-07-04 00:24 SilenceAries 阅读(167) 评论(0) 推荐(0)

2020年7月3日

jdk文件夹位置发生变化后idea的java代码报错问题

摘要: 今天因此c盘满了,所以将原本放在C盘的jdk文件夹转移到了D盘,并且重新配置了环境变量,通过windows命令窗口输入java -version检查环境变量配置成功。 但在打开idea后却发现所有代码全部报错了 解决方法: 需要在idea中重新配置jdk 点击File-->Other Setting 阅读全文

posted @ 2020-07-03 00:32 SilenceAries 阅读(1440) 评论(0) 推荐(0)

2020年6月30日

关于springboot连接mysql数据库出现时域时差问题的解决

摘要: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the ser 阅读全文

posted @ 2020-06-30 23:44 SilenceAries 阅读(437) 评论(0) 推荐(0)

Idea报错Could not autowire. No beans of 'XXXXMapper' type found解决方法

摘要: 该错误不影响程序正常运行,但看着总感觉别扭。 解决方法: File -->Settings-->Editor-->inspections-->Spring-->Spring Core-->Autowing for Bean Class,把勾选取消或者将右侧的Severity的Error改为Warni 阅读全文

posted @ 2020-06-30 23:15 SilenceAries 阅读(3356) 评论(0) 推荐(1)

导航