摘要: 子父类中成员变量的特点: 成员变量 当本类的成员和局部变量同名时用this区分。 当子父类中的成员变量同名时用super区分父类。 this和super的用法很相似。 this:代表一个本类对象的引用。 super:代表一个父类空间。 class Fu { int num = 5; } class  阅读全文
posted @ 2021-12-30 16:53 唐门·三少 阅读(46) 评论(0) 推荐(0)
摘要: Servlet[springmvc]的Servlet.service()引发了具有根本原因的异常Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested excep 阅读全文
posted @ 2020-10-05 18:22 唐门·三少 阅读(1129) 评论(0) 推荐(0)
摘要: 后台代码 解决方案 因为我后台使用了@RequestBody,这个注解只处理 json格式的数据,所有在ajax的请求中要指明数据为json 阅读全文
posted @ 2020-10-04 22:23 唐门·三少 阅读(754) 评论(0) 推荐(0)
摘要: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMappin 阅读全文
posted @ 2020-09-26 16:48 唐门·三少 阅读(1376) 评论(0) 推荐(0)
摘要: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [springmvc-d 阅读全文
posted @ 2020-09-25 21:35 唐门·三少 阅读(2289) 评论(0) 推荐(0)
摘要: 查看是否导入lib包,配置Tomcat,执行程序 点击1在WEB-INF目录下添加一个lib目录 点击2添加library Files 导入所有包 点击Apply和OK即可 截图 项目结构下面的,选中自己项目 再次运行就跑起来了 阅读全文
posted @ 2020-09-21 17:32 唐门·三少 阅读(177) 评论(0) 推荐(0)
摘要: org.apache.ibatis.binding.BindingException: Type interface com.wanghwei.mapper.UserMapper is not known to the MapperRegistry. at org.apache.ibatis.bin 阅读全文
posted @ 2020-09-19 17:30 唐门·三少 阅读(228) 评论(0) 推荐(0)
摘要: 九月 19, 2020 3:43:06 下午 org.springframework.context.support.AbstractApplicationContext refresh 警告: Exception encountered during context initialization 阅读全文
posted @ 2020-09-19 15:51 唐门·三少 阅读(734) 评论(0) 推荐(0)
摘要: 问题 具体的报错信息我不记得了,就记得 3 字节的 UTF-8 序列的字节 3 无效 解决方案 检查你配置xml中是否有中文注释,如果有删除掉,网上还说改掉编码格式,我没有试过,因为我删除掉中文注释运行成功后,在xml再添加中文注释,发现不能复现问题了,如果各位有新发现,请留言评论,告诉我! 阅读全文
posted @ 2020-09-19 00:17 唐门·三少 阅读(180) 评论(0) 推荐(0)
摘要: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; ne 阅读全文
posted @ 2020-09-19 00:11 唐门·三少 阅读(1026) 评论(0) 推荐(0)