sso与spring security整合 预认证场景 PreAuthenticated
1. 当前项目的有个要求,sso与spring security结合使用2. 使用spring security的“预认证场景” PreAuthenticated参考文档http://www.family168.com/tutorial/springsecurity/html/springsecurity.html3. 下载spring security的源代码。参考3.5. Pre-Authentication例子个例子演示了如何从pre-authentication框架绑定bean,从J2EE容器中获得有用的登录信息。 用户名和角色是由容器设置的。 代码在samples/preauth目录下。主要需要重写的类RequestHeaderAuthenticationFilter(sso认证跳入本应用系统后,首先到这个类进行用户权限加载和验证
Accessing Java Constants from JSTL or OGNL
Accessing Java Constants from JSTLEven there could be many variations to the above code, more creative, funnyer or smarter, this is not my recommended solution. Following the Principle No. 6 from our internal guide, the “DRW concept” (don’t reinvent the wheel :) ), the solution is simple: the unstandard tag library from Apache. Here’s how to use it: and later in you code, an expression like: ${users[Constants.NAME]} and later in you code, an expression like:${users[Constants.NAME]}OGNL - Get
连体衣
http://www.6diy.com/read.php?tid=89032http://item.taobao.com/auction/item_detail-0db2-d846c906642a5e0a46412dd7d6eedc23.jhtml?cm_cat=0http://www.6diy.com/read.php?tid=90036[@more@]pgy
bianzhi
http://www.bianz.com/?action-category-catid-3-page-18http://item.taobao.com/auction/item_detail-0db2-d846c906642a5e0a46412dd7d6eedc23.jhtml?cm_cat=0 http://www.bianz.com/?action-viewnews-itemid-2850http://www.bianz.com/batch.download.php?aid=11276http://www.bianz.com/?action-viewnews-itemid-2370http://www.bianz.com/?action-viewnews-itemid-2360-page-2http://www.bianz.com/?action-viewnews-itemid-1240-page-2不管领子袖子,一般按照54321的顺序来收针效果是最好的。即:第一行收5针,第三行收4针,第五行收3
PL/sql中怎样得到insert,update,delete语句执行后,受影响的纪录行数关键字
PL/sql中怎样得到insert,update,delete语句执行后,受影响的纪录行数关键字: pl/sql中怎样得到insert,update,delete语句执行后,受影响的纪录行数 是 sql%rowcount ,舉個例子 begin delete from xxx ; dbms_output.put_line(sql%rowcount); end; 最後顯示出來得,就是處理得行數,當然,這個sql%rowcount參數,你可以用來做判斷,檢察之類得[@more@]
oracle集群数据库的连接字符串及ORA-12505异常
url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on) (FAILOVER=on) (ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=host2)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=service_name)))"example: String url="jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = host1)(PORT = 1521))" + "(ADDRESS = (PROTOCOL = TCP)(HOST = host2)(PORT = 1521)) (LOAD_BALANCE = yes)" + "(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = epop3)
Hibernate 3 annotation 和hbm.xml混用
<hibernate-configuration> <session-factory> <mapping class="com.test.common.model.City"/> <mapping resource="com/test/model/User.hbm.xml"/> </session-factory></hibernate-configuration>[@more@]
spring security 问题解决方案
2、http节点的配置<http auto-config="true" lowercase-comparisons="false" path-type="ant" access-denied-page="/accessDenied.jsp" access-decision-manager-ref="accessDecisionManager"> <intercept-url pattern="/index.jsp*" access="ROLE_ANONYMOUS"/> <intercept-url pattern="/logout.jsp*" access="ROLE_ANONYMOUS"/> <intercept-url pattern="/accessDenied.jsp*&quo