![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件开发架构平台
渣渣的夏天
意静不随流水转,心闲还笑白云飞。
展开
-
数据库连接错误The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
在做一个Struct2和MyBatis的项目时,遇到报错信息 The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.经查询可知为Mybatis中的配置文件连接数据库时时区问题,在文件 mybatis-config.xml中<pro...原创 2019-06-13 17:14:58 · 1302 阅读 · 0 评论 -
jsp错误之The end tag "</s:form" is unbalanced
运行一个web项目时遇到 The end tag "</s:form" is unbalanced 错误,即标签未结束,报错信息一直显示该页面79行的form标签未结束,可是页面中明明是结束的……/WEB-INF/jsp/order/NewOrderForm.jsp (line: [79], column: [1])将该标签重写了n遍,又检查起了该标签中的其他标签,...原创 2019-06-13 18:03:17 · 2970 阅读 · 0 评论 -
MyBatis错误之 Parameter 'xxx' not found. Available parameters are [xxx]
MyBatis中操作数据时显示错误Parameter 'xxx' not found. Available parameters are [xxx]即SQL语句中 参数传递错误有两种解决方法参考:1. 加注解(测试过成功debug)在该方法定义时加注解 @Parampublic interface LogDAO { void insertLog( @Param("...原创 2019-06-13 18:19:18 · 34728 阅读 · 2 评论 -
MyBatis中数据库select有效,insert能够正常执行却不能写入数据到数据库
MyBatis中数据库insert数据不能写入到数据库中原因是insert数据时会回滚,数据不能提交解决方式:1. 将 openSession( )的值设为 truegetSqlSessionFactory().openSession(true);2. 添加语句sqlSession.commit();参考文章:【1】用mybatis中的insert方法插入数据,返...原创 2019-06-13 18:29:01 · 2602 阅读 · 3 评论 -
Spring Boot项目中报错Failed to configure a DataSource: 'url' attribute is not specified and no embedded d
Spring项目配置运行时报错Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.原因:添加了mysql依赖包,但是并未配置DataSource信息解决方式:在application.properties ...原创 2019-06-21 15:57:51 · 4402 阅读 · 0 评论