ITeye博客

usherlight

usherlight · 共 6 篇文章

spring security升级到3.1的一个小问题:不再支持filter="none"了

今天发现spring全体升级到3.1了,官方网站说是100%与3.0兼容,当然这指的是spring framework,可能没有包括spring security. 根据我个人升级的经历来说,首先xml头上的xsd文件版本要更新一下,从3.0.xsd改为3.1.xsd 另外,遇到了一个问题就是spring security中不再支持filter="none"了 比如: 需要改成:

2011-12-15 12:12 · 评论(0) · Spring · Security · filter

正确配置spring aop,在controller中使用AOP

在controller中使用AOP的问题主要在于如何让controller能够被检测到。 controller和其他spring bean的区别在于:controller是由mvc定义并在web.xml中的dispatcher中定义的。 解决方法: 1、正确定义controller,(比较通用的做法,没有特殊情况的话,大部分应用没有这个问题) a. 将服务层的类都放在ApplicationCotext-*.xml中定义,在context listener中初始化(注意,任何controller都不应该在这里出现),要包括, 在这里,有没有proxy-target-class="true" 没…

2011-12-12 12:04 · 评论(6) · Spring · MVC · AOP · controller

Outlook自动保存附件到硬盘目录

打开outlook, 按ALT-F11,打开microsfot visual basid-vbaProject, 工具-preferences- 确保microsoft office Object library前面打了勾。 然后,插入-模块 Sub SaveToNwsFolder(MyMail As MailItem) Dim strID As String Dim objNS As Outlook.NameSpace Dim objMail As Outlook.MailItem Dim objAtt As Outlook.Attachment Dim c As Integer Dim …

2011-12-09 07:50 · 评论(0) · outlook save attachement 自动保存 附件

tomcat启动时loading persisted sessions报IOException的解决方法

今天启动tomcat7的时候,突然发发现有错误信息: 16/11/2011 4:57:11 PM org.apache.catalina.session.StandardManager doLoad SEVERE: IOException while loading persisted sessions: java.io.EOFException 解决方法: 将work目录下的内容全部清空,然后重新启动tomcat,问题解决!

2011-11-17 06:09 · 评论(0) · Tomcat · session

spring security ajax示例

a. applicationContext-security.xml [code="xml"] [/code] b. index.ftl -- freemarker template [code="xml"]<#macro msg key> ${rc.getMessage(key)} <#if errors><@msg key="page.login.fail"/> <@msg key="page.login.label.username"/>: <@msg key="page.login.label.password"/>: Remember me for 2 weeks [/code] …

2011-10-31 08:05 · 评论(0) · Ajax · Spring · jQuery · Security

JQuery easyui改变panel的大小

在调用resize设置新的大小后,还要再调用resize来使得改变生效 $('#sidebar').panel('resize', {width: 100}); $('#sidebar').panel('resize');

2011-10-31 06:33 · 评论(0) · JQuery easyui panel resize