摘要: JAVA中按照"\"截取字符串,则:4个\相当于一个\,涉及到JAVA中的转义字符:String[] strs=imageValue.split("\\\\"); 阅读全文
posted @ 2015-01-12 14:31 紫发少年 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 页面.ftl: 后台JAVA代码: import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java... 阅读全文
posted @ 2015-01-12 14:24 紫发少年 阅读(163) 评论(0) 推荐(0) 编辑
摘要: List jfAuctionListValue=new ArrayList(); Map jfAuctionMap = new HashMap(); for (Integer key : jfAuctionMap.keySet()) { jfAuctionListValue.add(jfAucti... 阅读全文
posted @ 2015-01-12 14:17 紫发少年 阅读(270) 评论(0) 推荐(0) 编辑
摘要: List jfAuctionListValue=null; if(jfAuctionList!=null && jfAuctionList.size()>0){ Map jfAuctionMap = new HashMap(); for(JfAuction jfAuction:jfAuctio... 阅读全文
posted @ 2015-01-12 14:16 紫发少年 阅读(388) 评论(0) 推荐(0) 编辑
摘要: public List comparatorScoreAscTest(List jfAuctionList){ Collections.sort(jfAuctionList, new Comparator() { /* * int compare(Student o1, Student o2... 阅读全文
posted @ 2015-01-12 14:11 紫发少年 阅读(207) 评论(0) 推荐(0) 编辑
摘要: public int getMaxScoreByJfEventIdNumber(Integer jfEventId) { int numberValue=0; String hql = "from JfAuction where jfEvent.id =:jfEventId"; Finder fi... 阅读全文
posted @ 2015-01-12 14:07 紫发少年 阅读(97) 评论(0) 推荐(0) 编辑
摘要: String hql ="select j from JfAuction j where 1=1 "; hql+=" and j.jfEvent.id ="; hql+=jfEventId; hql+=" order by j.score desc "; Query query = jfAucti... 阅读全文
posted @ 2015-01-12 14:06 紫发少年 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public JfAuction getMaxScoreByJfEventId(Integer jfEventId) { JfAuction jfAuction=null; String hql = "from JfAuction where jfEvent.id =:jfEventId and ... 阅读全文
posted @ 2015-01-12 14:04 紫发少年 阅读(130) 评论(0) 推荐(0) 编辑
摘要: public List getListScoreByJfEventId(Integer jfEventId){ List jfAuctionList=null; String hql ="select j.id,j.user,j.jfEvent,sum(j.score),j.status,j.cre... 阅读全文
posted @ 2015-01-12 14:01 紫发少年 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 五、备份和还原MySQL数据库在数据库的管理中,备份和还原是必须做认真做的事情,如果疏忽或者做粗糙了,那么一旦数据库故障后果不堪设想,所以Navicat同样也有备份和还原的功能,相比较创建功能,其备份功能则非常的简单。1、备份数据库在主视图窗口中选择【备份】功能按钮后,在下面的导航栏中点击【新建备份... 阅读全文
posted @ 2014-12-29 15:33 紫发少年 阅读(270) 评论(0) 推荐(1) 编辑