public class PatternViewResolver
extends org.springframework.web.servlet.view.XmlViewResolver
PathMatcher
to match the view name to the bean names.
By default the AntPathMatcher
is used which supports Ant-style path patterns.
The mapping matches views using the following rules:
Constructor and Description |
---|
PatternViewResolver() |
Modifier and Type | Method and Description |
---|---|
org.springframework.util.PathMatcher |
getPathMatcher() |
protected org.springframework.beans.factory.BeanFactory |
initFactory() |
org.springframework.web.servlet.View |
resolveViewName(java.lang.String viewName,
java.util.Locale locale) |
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher) |
afterPropertiesSet, destroy, getCacheKey, getOrder, loadView, setLocation, setOrder
clearCache, createView, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, setCache, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
public org.springframework.util.PathMatcher getPathMatcher()
public org.springframework.web.servlet.View resolveViewName(java.lang.String viewName, java.util.Locale locale) throws java.lang.Exception
resolveViewName
in interface org.springframework.web.servlet.ViewResolver
resolveViewName
in class org.springframework.web.servlet.view.AbstractCachingViewResolver
java.lang.Exception
protected org.springframework.beans.factory.BeanFactory initFactory() throws org.springframework.beans.BeansException
initFactory
in class org.springframework.web.servlet.view.XmlViewResolver
org.springframework.beans.BeansException
Copyright © 2007-2020 EDIT. All Rights Reserved.