- 博客(6)
- 收藏
- 关注
原创 org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.a
笔者在试用RabbitMQ测试TTL时报的这么个错org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.amqp.rabbit.config.internalRabbitListenerEndpointRegistry'; nested exceptio...
2020-04-29 08:39:38
28583
1
原创 获取存储在session里数据的方法
// 获取session HttpSession session = request.getSession(); // 获取存储在session里所有的键值 Enumeration<String> attrs = session.getAttributeNames(); // 遍历attrs中的键与值while(attrs.hasMoreElements()){...
2020-03-08 23:00:43
2054
原创 Tomcat项目部署时启动报错org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start
IDEA中项目重新部署启动时候,报了一长串错误。完整报错信息如下:03-Mar-2020 16:31:02.731 严重 [RMI TCP Connection(8)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.cat...
2020-03-03 16:40:40
3994
3
原创 解决org.apache.ibatis.binding.BindingException: Type interface XXX is not known to the MapperRegistry
在Java使用mybatis框架,笔者运行一个例子的时候,IDEA报了这样的一个错:org.apache.ibatis.binding.BindingException: Type interface com.itheima.dao.RoleDao is not known to the MapperRegistry. at org.apache.ibatis.binding.MapperR...
2020-03-02 01:37:38
21006
3
原创 解决org.apache.ibatis.binding.BindingException: Type interface XXX is not known to the MapperRegistry
笔者在做mybatis的一个例子的时候,出现了下面这一个报错org.apache.ibatis.binding.BindingException: Type interface com.myBatis.dao.AccountDao is not known to the MapperRegistry. at org.apache.ibatis.binding.MapperRegistry.g...
2020-03-01 10:59:03
2342
2
原创 JDBC存在的问题及解决办法
一、JDBC操作的步骤1.导入数据库驱动jar包2.编写程序a. 注册驱动(要操作哪种数据库,就要注册哪种数据库的驱动类);b. 获取连接,连接上数据库c. 创建SQL执行平台(SQL执行平台提供了执行SQL语句的方法)d. 执行SQL语句e. 处理结果f. 释放资源二、JDBC存在的问题1. 重复代码问题,每次操作数据库都需要:注册驱动获取连...
2020-01-10 16:13:22
1631
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人