`
taotao110120119
  • 浏览: 8137 次
文章分类
社区版块
存档分类
最新评论
文章列表
/将缓冲文件夹中的文件删除    String s = "D:\\txt\\inBuffer\\"+ fileInfo[0] +"\\" + fileID;//文件的绝对路径    File file = new File(s);    if(file.exists()){     boolean d = file.delete(); if(d){      System.out.print("删除成功!");     }else{      System.out.print("删除失败!");     }    ...
本文主要参考了此文章:http://blog.sina.com.cn/s/blog_4a5e32770100hfdh.html     通常我们在Windows系统下编译程序是都使用IDE环境,如VC++6.0、VS2010等,直接点击几个按钮就可以完成工作,今天偶想在控制台环境下能够进行编译?网上查看后知道,只需设置一下环境变量就可以了。(以VS2010为例,里面有VC的功能)     ../Microsoft Visual Studio 9.0/VC/bin:这里放有编译器 CL.EXE,将其加到系统变量中的PATH中即可;     ../Microsoft Visual Studio ...
Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator 错误提示: Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator at org.hibernate.exce ...
通过上面用户注册例子的学习,我们知道Xwork与Web无关性,我们的Action不用去依赖于任何Web容器,不用和那些 JavaServlet复杂的请求(Request)、响应(Response)关联在一起。对请求(Request)的参数(Param),可以使用拦截器框架自动调用一些get()和set()方法设置到对应的Action的字段中。但是,仅仅取得请求参数的值就能完全满足我们的功能要求吗?不,在 Web应用程序开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServ ...
今天在使用struts-menu制作菜单,在web.xml中写入    <taglib>      <taglib-uri>/WEB-INF/struts-menu.tld</taglib-uri>      <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>    </taglib>   后,提示“cvc-complex-type.2.4.a: Invalid content was found starting with element 'tagl ...
Global site tag (gtag.js) - Google Analytics