If you are using version 3.1 / 3.2, you can try this without commenting or deleting
Write a mail processor
public class MvcConfigurationPostProcessor implements BeanPostProcessor, PriorityOrdered { @Override public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof RequestMappingHandlerMapping) { ((RequestMappingHandlerMapping) bean).setUseSuffixPatternMatch(false); } return bean; } @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { return bean; } @Override public int getOrder() { return PriorityOrdered.HIGHEST_PRECEDENCE; } }
use the above post processor in xml config.
<bean class="com.beanprocbug.melia.MvcConfigurationPostProcessor" /> <mvc:annotation-driven />
source share