
绊脚石-BUG
卡尼_Hu
破茧成蝶在路上@@
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ajax提交form表单,H5的required属性没起作用
ajax提交form表单,required属性不起作用 1、错误代码如下: $("#submit").bind("click",function(){ $.ajax({ ... }) }); 2、正确代码如下: $("#order").submit(function(){转载 2017-06-16 22:46:53 · 2508 阅读 · 0 评论 -
window.location.href("url") 无法在chrome和Firefoxz中使用
问题:js中用window.location.href("url")实现页面的跳转,IE中可以正常使用,但是Firefox却提示window.location is not a function。解决方案:google以后将代码改为window.location="url" 程序正常执行。简言之:下面的格式可以在IE中正常执行,但是不能在Firefox和Chro转载 2017-06-03 09:41:49 · 5604 阅读 · 0 评论 -
The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced
继承JdbcDaoSupport时出现The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced 错误;将spring-tx-3.2.0.RC2.jar包导入项目后解决了。原创 2017-07-11 17:50:04 · 446 阅读 · 0 评论 -
spring+hibernate整合时出现的错误
刚接触SSH框架,学习的过程中一动手就是各种bug,在此记录一下bug。Bug1:使用spring4.1.0+hibernate3.0.5出现如下异常Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name '原创 2017-07-13 18:16:15 · 629 阅读 · 0 评论 -
关于虚拟路径和绝对路径(Tomcat)
server.xml相关配置如下: request.getServletPath()得到访问路径------------------>/index.jsprequest.getContextPath()得到虚拟目录名字------------>/anyNamethis.getServletContext().getContextPath() 也是得到虚拟目录名字--------转载 2017-06-15 10:44:09 · 2070 阅读 · 0 评论 -
以中文为查询条件查询mysql数据库时有数据却查不到数据或者中文乱码的问题
中文乱码或者有数据查不到数据这类问题,多数是因为编码不一致导致。WEB开发中:MYSQL编码主要会出现在五个地方: 1、 mysql安装的默认编码(latin1)-在mysql.ini(mysql安装根目录下)中设置。[mysqld]选项,默认没有。添加即在最后一行加入default-character-set=utf8。 2、mysql数据库的编码,原转载 2017-06-06 10:53:04 · 4569 阅读 · 1 评论 -
jsp页面显示空白的原因
1、 jsp编译的jar包版本的问题,要编译的jsp版本和包补匹配。 2、 3、 lib中的jsp-api.jar在作怪,这个jar已经不知道是从何而来的了更不知道版本号,好像是从Spring2.0m5的 dependency lib中拷过来的。可能是里面的jsp-api和我的tomcat5.5不太兼容吧 4、一个查询的jsp页面,点击后是空白页面,再次点击显示正常。但有转载 2017-06-22 10:07:21 · 19065 阅读 · 4 评论 -
MySQL Service detected with wrong path
原文出处 问题描述:以前安装过mysql,后来安装xampp,mysql打不开,出错提示16:04:48 [mysql] MySQL Service detected with wrong path16:04:48 [mysql] Change XAMPP MySQL and Control Panel settings or16:04:48 [mysql] Uninstal转载 2017-12-19 18:19:03 · 8655 阅读 · 3 评论