custom exception mapping in spring security xml -


i giving below snippet in spring security.xml

<!-- exception mapping configuration -->     <bean id="securityexceptiontranslationhandler"         class="com.abc.xyz.exceptionmappingfailurehandler" >         <property name="exceptionmappings">             <props>                 <prop key="org.springframework.security.authentication.credentialsexpiredexception">/408</prop>             </props>         </property>     </bean> 

i getting error while starting tomcat saying : invalid property exceptionmappings of com.abc.xyz.exceptionmappingfailurehandler class :bean property exceptionmappings not writtable or has invalid setter method .

what should content of com.abc.xyz.exceptionmappingfailurehandler class ? appreciated !

your class should work:

package com.abc.xyz;  public class exceptionmappingfailurehandler {      public void setexceptionmappings(map mappings) {         ...     } } 

the important thing there setter name, returns void, , accepts single argument of type map.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -