09 2020 档案
拦截器配置问题BeanCreationException Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
摘要:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMappin 阅读全文
posted @ 2020-09-26 16:48 唐门·三少 阅读(1437) 评论(0) 推荐(0)
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception
摘要:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [springmvc-d 阅读全文
posted @ 2020-09-25 21:35 唐门·三少 阅读(2325) 评论(0) 推荐(0)
IDEA 404 无法找到页面
摘要:查看是否导入lib包,配置Tomcat,执行程序 点击1在WEB-INF目录下添加一个lib目录 点击2添加library Files 导入所有包 点击Apply和OK即可 截图 项目结构下面的,选中自己项目 再次运行就跑起来了 阅读全文
posted @ 2020-09-21 17:32 唐门·三少 阅读(181) 评论(0) 推荐(0)
MyBatis Error org.apache.ibatis.binding.BindingException: Type interface c* is not known to the MapperRegistry.
摘要: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 唐门·三少 阅读(242) 评论(0) 推荐(0)
spring-mybatis DataSource' for property 'dataSource': no matching editors or conversion strategy found
摘要:九月 19, 2020 3:43:06 下午 org.springframework.context.support.AbstractApplicationContext refresh 警告: Exception encountered during context initialization 阅读全文
posted @ 2020-09-19 15:51 唐门·三少 阅读(748) 评论(0) 推荐(0)
Spring Error 3 字节的 UTF-8 序列的字节 3 无效
摘要:问题 具体的报错信息我不记得了,就记得 3 字节的 UTF-8 序列的字节 3 无效 解决方案 检查你配置xml中是否有中文注释,如果有删除掉,网上还说改掉编码格式,我没有试过,因为我删除掉中文注释运行成功后,在xml再添加中文注释,发现不能复现问题了,如果各位有新发现,请留言评论,告诉我! 阅读全文
posted @ 2020-09-19 00:17 唐门·三少 阅读(194) 评论(0) 推荐(0)
Spring Error BeanDefinitionStoreException: IOException parsing XML document from class path resource *
摘要:org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; ne 阅读全文
posted @ 2020-09-19 00:11 唐门·三少 阅读(1054) 评论(0) 推荐(0)
Cause: java.io.NotSerializableException
摘要:问题使用过FIFO缓存之后发生的Error 解决方案序列化报错的类 解决 阅读全文
posted @ 2020-09-13 18:03 唐门·三少 阅读(257) 评论(0) 推荐(0)
org.apache.ibatis.binding.BindingException: Type interface * is not known to the MapperRegistry.
摘要:问题原因 接口名指定错误 解决方案 指定正确的接口名 阅读全文
posted @ 2020-09-12 17:58 唐门·三少 阅读(306) 评论(0) 推荐(0)
Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 对象名 * 无效。
摘要:问题 解决方案 配置数据名写错了 阅读全文
posted @ 2020-09-12 17:52 唐门·三少 阅读(5170) 评论(1) 推荐(0)
Mybatis The content of element type "environment" must match "(transactionManager,dataSource)"
摘要:今天遇到一个很奇怪的问题,我Mybatis 配置文件中是environment中是有transactionManager,dataSource 元素的 解决方案 问题是在 envionment元素下面有个 注释<!--事务管理-->,我也不知道为什么会发生,把注释去掉就行了 阅读全文
posted @ 2020-09-12 17:29 唐门·三少 阅读(1242) 评论(0) 推荐(0)
idea 打开项目java显示橙色 / 表标识
摘要:问题 解决方案 找到该项目下的pom.xml文件,右击选择Add as Maven project,截图没有,因为修复这个问题,右键了就没有Add as Maven project 阅读全文
posted @ 2020-09-12 15:15 唐门·三少 阅读(2531) 评论(0) 推荐(0)
初识 Mybatis 执行流程
摘要:各位大佬,小弟这是自我学习总结,如有错误,请指教。 Mybatis 执行流程 1.配置Mybatis核心配置文件mybatis-config.xml,也可以是别的命名,只不过官方文档建议使用mybatis-config.xml,配置内容我就略过了,因为我想总结的是执行流程,而不是使用配置流程。 2. 阅读全文
posted @ 2020-09-11 12:29 唐门·三少 阅读(218) 评论(0) 推荐(0)
Mybatis logImpl 学习Error
摘要:1.Error java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessor 阅读全文
posted @ 2020-09-10 17:30 唐门·三少 阅读(2314) 评论(0) 推荐(0)
Error instantiating interface com.wanghwei.dao.IUserMapper with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.wanghwei.dao.IUserMapper.<init>()
摘要:报错信息: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: Error i 阅读全文
posted @ 2020-09-10 00:45 唐门·三少 阅读(657) 评论(0) 推荐(0)
Cause: java.sql.SQLException: No suitable driver found for http://www.example.com (maven搭建mybatis出错)
摘要:Cause: java.sql.SQLException: No suitable driver found for http://www.example.com 当我们使用Maven搭建Mybatis时,Maven在程序运行进行编译时,如果mybatis使用外部配置文件,会发生url地址替换错误的 阅读全文
posted @ 2020-09-09 22:25 唐门·三少 阅读(373) 评论(0) 推荐(1)
Mybatis 异常 Error Type interface com.wanghwei.dao.IUserDao is not known to the MapperRegistry 或者 Could not find resource *
摘要:1.Error 对于新手来说也许会遇到的问题 解决方案 配置mybatis-config.xml ><mapper> 代码: <mappers> <mapper resource="src/main/resources/mapper/UserMapper.xml"/></mappers> 之后测试又 阅读全文
posted @ 2020-09-09 12:54 唐门·三少 阅读(438) 评论(0) 推荐(0)
Java 使用request.getParameter 中文 问号 ??????
摘要:问题描述: 练习项目的时候,前面做的功能模块request.getParameter传参没有任何问题,突然新建的Servlet使用request.getParameter 传参得出的结果为:??????????????一推问号,这个不用说肯定是乱码,但是我回想我使用过滤器已经把Request和Res 阅读全文
posted @ 2020-09-08 17:04 唐门·三少 阅读(733) 评论(0) 推荐(0)