`
wutao8818
  • 浏览: 606467 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
需要添加applicationContext-security.xml文件中添加以下配置 <beans:bean id="customWebInvocationPrivilegeEvaluator" class="org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator"> <beans:constructor-arg name="securityInterceptor" ref="myFi ...
spring security配置同时登陆用户数参数后,登出系统后无法再次登陆 <session-management invalid-session-url="/login.html"> <concurrency-control max-sessions="1" error-if-maximum-exceeded="true" /> </session-management> 在web.xml中添加以下配置,恢复正常。 <listener> <liste ...
看到这样的性能提升,可能每个程序员都会对她着迷片刻。 官方文档 http://logging.apache.org/log4j/2.x/manual/async.html 1、使用方式一:全局开启 引用Making All Loggers Asynchronous 需要disruptor-3.0.0.jar 引用This is simplest to configure and gives the best performance. To make all loggers asynchronous, add the disruptor jar to the classpath an ...
在使用POI导出PPT的过程中,有时候需要实现按照指定模板创建一个PPT。 PPT POI 官方API文档地址: http://poi.apache.org/apidocs/index.html 复制一个slide的代码 import org.apache.poi.hslf.model.Slide; import org.apache.poi.hslf.model.Shape; private Slide copySlide(Slide slide) { Slide s1 = slide.getSlideShow().createSlide(); Shape[ ...
<div id="uploader" class="wu-example"> <div class="queueList"> <div id="dndArea" class="placeholder"> <div id="filePicker"></div> <p>或将照片拖到这里,单次最多可选300张</p&g ...
spring4.0以后加入了对websocket技术的支持 http://blog.csdn.net/gisredevelopment/article/details/38392629 使用 HTML5 WebSocket 构建实时 Web 应用 http://www.ibm.com/developerworks/cn/web/1112_huangxa_websocket/ 使用 HTML5 开发离线应用 http://www.ibm.com/developerworks/cn/web/1011_guozb_html5off/ Servlet3异步 http://ismezy.iteye ...
用过浏览器的开发人员都对大文件上传比较困扰,最近发现一个新的上传控件,希望能对你有所帮助。在这里分享一下。 Web Uploader http://fex-team.github.io/webuploader/ http://fex.baidu.com/blog/2014/04/html5-uploader/ WebUploader是由Baidu WebFE(FEX)团队开发的一个简单的以HTML5为主,FLASH为辅的现代文件上传组件。在现代的浏览器里面能充分发挥HTML5的优势,同时又不摒弃主流IE浏览器,沿用原来的FLASH运行时,兼容IE6+,iOS 6+, android 4+ ...
http://blog.csdn.net/jadyer/article/details/7575934 SPRING MVC http://blog.csdn.net/jadyer/article/category/1148553 spring mvc4使用及json 日期转换解决方案 远离广告
最近在项目中发现2个系统对同一内容的处理结果不一致。 引用jetty-7.6.14.v20131031 引用Apache Tomcat Version 8.0.5 平时开发在MAVEN环境下jetty开发,部署环境是Tomcat 对请求参数el标签的处理结果不一致。 例如: <option value="0" <c:if test="${(!empty param.named) and (0 eq param.named)}">selected</c:if>>否</ ...

Ajax Typeahead

    博客分类:
  • js
https://github.com/pwarelis/Ajax-Typeahead $("#ajax-typeahead").typeahead({ ajax: { url: "/path/to/source", timeout: 500, displayField: "name", triggerLength: 1, method: "get", loadingClass: "lo ...
最近hibernate,spring版本升级频繁,搭建框架中遇到很多问题是版本不匹配操作的,个别包删除,测试通过的hibernate 4.2.12.Final 搭配 spring 3.2.8.RELEASE没有出现问题。
HTML 的注释格式是 , IE 对HTML注释做了一些扩展,使之可以支持条件判断表达式,如何让静态HTML代码在不同IE版本显示不同内容? 和编程语言类似,这里的表达式还支持大于(gt)、小于(lt)、 与或非 等操作符,条件注释是 IE5.0 以上版本所特有的一种对注释的扩展,其它浏览器不支持。 [if IE] 判断是否IE [if IE 7] 判断是否是IE7 [if !IE] 判断是否不是IE [if lt IE 5.5] 判断是否是IE5.5 以下版本。  (<) [if lte IE 6] 判断是否等于IE6 版本或者以下 (<=) [if gt IE 5] 判断是否IE ...
原始数据:{"status":0,"result":[{"x":114.2307489832,"y":29.579081808346}]} logger.error(obj.getFloatValue("x")); 114.23075 logger.error(obj.getDoubleValue("x")); 114.23075103759766 以上2个方法都无法获得完全一致的数值。 Double.valueOf(obj.get( ...
新项目发布后非常不稳定,主要的问题集中在数据库频繁卡死。 错误提示引用Deadlock found when trying to get lock; try restarting .......... 开始寻找问题原因,查看慢速SQL查询,发现主要问题在一张5000多条数据的点位信息表。 按理来说,这个数据量对mysql来说是一个非常轻松的数据量,为什么会频繁出现超时问题? 查看查询条件,包含一个字段的 in 查询。照理来说也不应该有那么慢,数据量太低,表中的字段有多个varchar字段,文字太多?按照以往的经验来判断,应该不会,其他项目中相同数量级带varchar字段的表也没有出现类似问 ...
<td> $date.format("yyyy-MM-dd","${result.modifyTime}")</td> 最近迁移服务器,有套使用Velocity系统的所有时间的velocity表达式都失效了。 在反复调试后发现是一个引用""造成的。 <td> $date.format("yyyy-MM-dd","${result.modifyTime}")</td> 去掉值外面的双引号后,表达式恢复正常。 <td> $date.f ...
Global site tag (gtag.js) - Google Analytics