03 2022 档案
摘要:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource Caused by: o
阅读全文
摘要:问题描述:测试时数据库连接太久,估计执行不了 果然,提示异常: SQLException: Connections could not be acquired from the underlying database! 1.这问题应该是数据库信息不正确造成的,检查数据库信息 2.因为问题发生在jdb
阅读全文
摘要:捕捉关键语句: Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'; 关键词: BeanCreati
阅读全文
摘要:1.检查异常点,打印传入的参数servletContext,正常。 ServletContext servletContext = request.getServletContext();System.out.println(servletContext); 2.检查上下文监听器,监听器填写无误。
阅读全文
摘要:由于json是根据pojo类的get方法获取属性的,所以有时候会对一些状态码进行转换,比如说status=0/1,应该给用户展示为status=禁用/启用,但数据库里不需要这个字符串,因此使用了下面这个方法去转换: public String getStatusStr() { if(this.sta
阅读全文