2014年5月8日

myeclipse9中导入的jquery文件报错(出现红叉叉,提示语法错误)

摘要: 选中报错的js文件,右键选择 MyEclipse-->Exclude From Validation ;然后继续右键执行MyEclipse-->Run Validation 即可 阅读全文
posted @ 2014-05-08 19:55 zhuyz1110 阅读(148) 评论(0) 推荐(0)

myeclipse导入项目出现乱码

摘要: (1)修改整个工作空间的编码方式:Window->Preferences->General->Workspace->TextfileEncoding在Others里选择需要的编码方式,然后保存。 阅读全文
posted @ 2014-05-08 19:37 zhuyz1110 阅读(186) 评论(0) 推荐(0)
2014年4月22日

java中类型转换

摘要: 1.基本数据类型转换 char,byte,short,int,long,float,double,boolean(1)小类型数据可以直接赋给大类型数据 例:char a='m' ; int b=2; long c=3; double d=4; b=a; 注:byte型数据不能... 阅读全文
posted @ 2014-04-22 17:56 zhuyz1110 阅读(185) 评论(0) 推荐(0)
2014年3月4日

搜索栏css代码

摘要: 无标题文档 阅读全文
posted @ 2014-03-04 16:52 zhuyz1110 阅读(673) 评论(0) 推荐(0)
2014年3月2日

两份div之间出现空隙的原因及解决方法

摘要: 在一个div加有 因为ul有个默认的margin和padding值 如果该div中没有设边框 ul默认的值的就会对上一个div有影响解决方法:将ul的margin值设置为0 阅读全文
posted @ 2014-03-02 21:27 zhuyz1110 阅读(971) 评论(0) 推荐(0)
2013年12月19日

springMVC参数传递

摘要: web.xml文件 index.jsp springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath*:config/springMVCAnnotation-servlet.xml 1 springMVC / springMVCAnnotation-servlet.xml文件 --> ... 阅读全文
posted @ 2013-12-19 12:20 zhuyz1110 阅读(254) 评论(0) 推荐(0)
2013年12月18日

springMVC基础配置

摘要: web.xml文件 index.jsp springMVC org.springframework.web.servlet.DispatcherServlet 1 springMVC / springMVC-servlet.xml文件 HelloWorldController.java文件package com.tgb.web.cont... 阅读全文
posted @ 2013-12-18 14:59 zhuyz1110 阅读(192) 评论(0) 推荐(0)

springMVC静态文件访问

摘要: web.xml文件 index.jsp springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath*:config/springMVC-servlet.xml 1 springMVC / springMVC-servlet.xml文件 StaticControlle... 阅读全文
posted @ 2013-12-18 14:51 zhuyz1110 阅读(266) 评论(0) 推荐(0)
2013年12月17日

springMVC注解启用及优化

摘要: 使用注解的原因最方便的还是启用注解注解方便,而且项目中很流行。配置文件尽量减少,主要使用注解方式。Springmvc的注解是在2.5版本后有了注解,如何开启注解配置文件Web.xml文件中不需要修改,只修改springmvc配置文件新建一个springmvc的配置文件,取名为springAnnotation-servlet.xmlweb.xml文件中的配置 index.jsp springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ... 阅读全文
posted @ 2013-12-17 16:23 zhuyz1110 阅读(644) 评论(0) 推荐(0)
2013年12月15日

springMVC中一个controller多个方法

摘要: web.xml文件: index.jsp springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath*:config/spring-servlet.xml 1 springMVC / spring-servlet.xml文件: MultiController.java文件:package com.mcm.web.controller;import javax.servlet.http.HttpServletRequest;imp... 阅读全文
posted @ 2013-12-15 15:30 zhuyz1110 阅读(406) 评论(0) 推荐(0)