02 2014 档案
摘要:前面已经配置成功后,就可以在Web 层的Servlet或Jsp中调用访问Spring了,如果你 编制的是一个Servlet/Jsp 程序,那么在你的Servlet/Jsp 使用下面的代码通过Spring 创建B 的实例:ServletContext servletContext =this.getServletContext();WebApplicationContext appContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);B b = (B) appContext.ge
阅读全文
摘要:MongoDB的update问题(JAVA)——怎么一次更新所有的相同记录用如下这个函数:public WriteResult update(DBObject q, DBObject o, boolean upsert, boolean multi) throws MongoException官方API写的是:upsert - if the database should create the element if it does not existmulti - if the update should be applied to all objects matching首先我的collec
阅读全文
摘要:/** * 获取ie浏览器版本号 * @returns */function getInternetExplorerVersion(){ var version = -1; // Return value assumes failure. if (navigator.appName == 'Microsoft Internet Explorer'||navigator.appName=="Netscape") { var ua = navigator.userAgent.toLowerCase(); var strRegIE1 =...
阅读全文

浙公网安备 33010602011771号