2014年4月6日

iOS动画效果-CABasicAnimation- 关键帧动画

摘要: 使用需要导入QuartzCore.framework1.定义imageView,并初始化1 _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(40, 40, 60, 60)];2 _imageView.layer.c... 阅读全文

posted @ 2014-04-06 14:11 李园春秋 阅读(1022) 评论(0) 推荐(0) 编辑

2014年4月4日

iOS——本地化操作

摘要: 1.iOS程序修改在手机或模拟器上的名字右键单击.plist文件,Open As --> Source Code,复制第二项 CFBundleDisplayName,在InfoPlist.string中输入 "CFBundleDisplayName"="程序名";2.本地化操作1>.新建工程,注意尽量少使用StoryBoard,不知道为啥,有时对,有时错,不用就行了,建立新的工程2>.选中工程,选择Project,在下面的Localizations中添加自己想要添加的语言,我添加汉语为例,出现弹窗点击finished就行3>.在S 阅读全文

posted @ 2014-04-04 20:27 李园春秋 阅读(173) 评论(0) 推荐(0) 编辑

2013年11月17日

后台页面获取前台action的值的方法

摘要: 1.前台action有user,password属性,并设置setter方法 用户名:${user} 密码:${password}2.前台action有类实例,如private Student student = new Student();姓名:性别: 阅读全文

posted @ 2013-11-17 18:46 李园春秋 阅读(350) 评论(0) 推荐(0) 编辑

错误:org.hibernate.PropertyValueException:not-null property references a null or transient value

摘要: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.zyl.po.Card.cardnumat org.hibernate.engine.Nullability.checkNullability(Nullability.java:95)at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:313 阅读全文

posted @ 2013-11-17 17:04 李园春秋 阅读(5583) 评论(0) 推荐(0) 编辑

2013年11月16日

com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1问题出现的原因及解决办法

摘要: 报的错误: 1 严重: Exception starting filter struts2 2 Class: com.opensymphony.xwork2.spring.SpringObjectFactory 3 File: SpringObjectFactory.java 4 Method: getClassInstance 5 Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1 6 at org.apache.struts2.dispatcher.Dispatcher.init(... 阅读全文

posted @ 2013-11-16 18:02 李园春秋 阅读(1442) 评论(0) 推荐(0) 编辑

2013年11月5日

主键生成策略

摘要: Assigned(常用) Hilo Sequence Identity native UUid 阅读全文

posted @ 2013-11-05 22:05 李园春秋 阅读(3303) 评论(0) 推荐(0) 编辑

sql语句的使用

摘要: 删除id 号不连续的三个记录delete from student where id in ('1','4','6');或delete from student where id='1' or id='4' or id='6'如果id是数字类型的就不用加单引号 阅读全文

posted @ 2013-11-05 19:41 李园春秋 阅读(113) 评论(0) 推荐(0) 编辑

2013年10月24日

jquery基础,隐藏 HTML 文档中所有的 <p> 元素

摘要: 使用jquery基础语法,选择器,实现隐藏html元素 阅读全文

posted @ 2013-10-24 19:46 李园春秋 阅读(1732) 评论(0) 推荐(0) 编辑

2013年10月17日

Ajax解决中文乱码问题

摘要: 1.发送请求时出现中文乱码Ajax不支持多种字符集,它默认的字符集是UTF-8,所以接收数据时,要将编码转换为UTF-8如将用户名的编码转换为UTF-8: String user = new String(request.getParameter("user").getBytes("ISO-8859-1"),"UTF-8");2.获取服务器的相应结果时出现中文乱码解决办法是保证从服务器端传递的数据采用UTF-8的编码格式 阅读全文

posted @ 2013-10-17 22:39 李园春秋 阅读(138) 评论(0) 推荐(0) 编辑

Ajax实现判断用户名是否已被注册

摘要: 先建立连接,发送请求,根据下一个页面来判断是否已经存在 阅读全文

posted @ 2013-10-17 20:21 李园春秋 阅读(1044) 评论(0) 推荐(0) 编辑

导航