france

https://github.com/francecil

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

09 2014 档案

摘要:#includeusing namespace std;//#define maxn 2000010#include//int a[maxn];//int val[maxn];int main(){ int t; scanf("%d",&t); int i; // memset... 阅读全文
posted @ 2014-09-30 15:28 france 阅读(141) 评论(0) 推荐(0)

摘要:org.springframework.dao.InvalidDataAccessResourceUsageException:could not execute query; nested exception is org.hibernate.exception.SQLGrammarExcept... 阅读全文
posted @ 2014-09-28 14:41 france 阅读(141) 评论(0) 推荐(0)

摘要:在部署致服务器的时候 发现mysql密码为空的情况 如果采用 root账户的话试过很多 比如不写下面这行发现不行, 或者在jdbc.properties写jdbc.password=也不行后来 听到学长说到安全性的东西 要设置密码,然后就 新建了一个user帐号,直接用就行了 就不必被空密码的问题搞... 阅读全文
posted @ 2014-09-28 14:34 france 阅读(333) 评论(0) 推荐(0)

摘要:#includeusing namespace std;#include#define max 105long a[100000],step,sum,n,m,visited[max][max];long directions[4][2]={{0,1},{1,0},{0,-1},{-1,0}};int... 阅读全文
posted @ 2014-09-23 15:29 france 阅读(130) 评论(0) 推荐(0)

摘要:Session的生命周期 Session存储在服务器端,一般为了防止在服务器的内存中(为了高速存取),Sessinon在用户访问第一次访问服务器时创建,需要注意只有访问JSP、Servlet等程序时才会创建Session,只访问HTML、IMAGE等静态资源并不会创建Session,可调用re... 阅读全文
posted @ 2014-09-21 18:37 france 阅读(220) 评论(0) 推荐(0)

摘要:#include#includeusing namespace std;#includeint main(){ stack sta; string mys[250000]; int n,i,j; int a[100010]; while(cin>>n){ for(i=1;i>a[i]; a[0... 阅读全文
posted @ 2014-09-16 15:14 france 阅读(135) 评论(0) 推荐(0)

摘要:"> main page 请选择您的方向 确定 123 123 123 123 123 123... 阅读全文
posted @ 2014-09-14 18:03 france 阅读(168) 评论(0) 推荐(0)

摘要:model有个类user,其中有个string属性direction(方向)在LoginAction中登入成功 就ActionContext actionContext = ActionContext.getContext(); Map session = actionContext... 阅读全文
posted @ 2014-09-14 10:36 france 阅读(493) 评论(0) 推荐(0)

摘要:有时候 比如提交一个弹框的表单 提交成功后我们只是让表单关闭并不进行页面跳转,那么action 里面就returne null, 然后result 也不用配置了 版权声明:本文为博主原创文章,未经博主允许不得转载。 阅读全文
posted @ 2014-09-14 02:03 france 阅读(430) 评论(0) 推荐(0)

摘要:jsp放在webroot目录下 这样就可以让用户直接访问,jsp放在web-inf目录下就必须要通过请求才能访问。因此放在web-inf下jsp页面显得要安全。既然这样 ,那是不是只要是需要通过请求才可以访问的页面就一定要放在web-inf目录下呢还有放在webroot和放在web-inf目录下都各... 阅读全文
posted @ 2014-09-14 01:19 france 阅读(375) 评论(0) 推荐(0)

摘要:ERROR :Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.TruePointcut with modifiers "public"参考:http:/... 阅读全文
posted @ 2014-09-12 14:42 france 阅读(207) 评论(0) 推荐(0)

摘要:Ext.require([ 'Ext.form.*', 'Ext.data.*']);Ext.onReady(function(){ Ext.apply(Ext.form.VTypes, { repetition: function(val, field) { //... 阅读全文
posted @ 2014-09-11 18:22 france 阅读(320) 评论(0) 推荐(0)

摘要:图片上传前的预览 版权声明:本文为博主原创文章,未经博主允许不得转载。 阅读全文
posted @ 2014-09-11 09:16 france 阅读(273) 评论(0) 推荐(0)

摘要:1.2 水题系列之二★实验任务给定一个正整数 N,求 N!的末尾的“0”的个数。★数据输入输入一个整数 N(1 using namespace std; int main(){ int a[50]; a[1]=5; int i; for(i=2;;i++)... 阅读全文
posted @ 2014-09-09 17:23 france 阅读(222) 评论(0) 推荐(0)

摘要:#include#include#includeusing namespace std;int a[500001];int binarySearchFirstPos(int l, int r, int key){ int mid; while(lkey) r=mid-1; else { if... 阅读全文
posted @ 2014-09-09 17:18 france 阅读(260) 评论(0) 推荐(0)

摘要:#includeusing namespace std;int main(){ int a[50]; a[1]=5; int i; for(i=2;;i++){ a[i]=a[i-1]*5; if(a[i]>100000000)break; } int len=i-1; int n; ci... 阅读全文
posted @ 2014-09-09 15:38 france 阅读(112) 评论(0) 推荐(0)

摘要:ExtJS简介Ext是一个Ajax框架,用于在客户端创建丰富多彩的web应用程序界面,是在Yahoo!UI的基础上发展而来的。官方网址:www.sencha.comExtJS是一个用来开发前端应用程序界面的JS框架,借鉴Swing等思想,提供了一套完整的组件库及强大的ajax支持功能,可以用Ext来... 阅读全文
posted @ 2014-09-05 20:22 france 阅读(236) 评论(0) 推荐(0)

摘要:2013-4-2813:17:57org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2java.lang.NoClassDefFoundError:org/apache/commons... 阅读全文
posted @ 2014-09-03 22:58 france 阅读(313) 评论(0) 推荐(0)

摘要:题目:有三种角色,假设是a,b,c; 其中a是攻,b是受,c可攻可受,每个人都除了拥有一个角色外,还有一个属性值,只有两个绝对值相差2的攻,受才能配成一对,问最多能配成多少对如果按角色来分肯定不行, 那么要用二分图的话,就是对属性值来分 左右两边 分别是 %4=2 这样正好二分。。。这个思想很重要。... 阅读全文
posted @ 2014-09-03 18:11 france 阅读(186) 评论(0) 推荐(0)