Hint: This may be the result of an unspecified view, due to default view name generation.)]
2017-05-08 18:29
681 查看
严重: Servlet.service() for servlet [springmvc] in context with path [/blog] threw exception [Circular view path [showArticleType]: would dispatch back to the current handler URL [/blog/showArticleType] again. Check your ViewResolver
setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
javax.servlet.ServletException: Circular view path [showArticleType]: would dispatch back to the current handler URL [/blog/showArticleType] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified
view, due to default view name generation.)
在开发时尽量不要自己注册如:
Java代码
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
尽量使用
Java代码
<mvc:annotation-driven/>
它设计的已经足够好,使用子元素可以配置我们需要的配置。
且不要使用老版本的:
Java代码
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
否则可能得到如下异常:
写道
Circular view path [login]: would dispatch back to the current handler URL [/spring4/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
javax.servlet.ServletException: Circular view path [showArticleType]: would dispatch back to the current handler URL [/blog/showArticleType] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified
view, due to default view name generation.)
在开发时尽量不要自己注册如:
Java代码
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
尽量使用
Java代码
<mvc:annotation-driven/>
它设计的已经足够好,使用子元素可以配置我们需要的配置。
且不要使用老版本的:
Java代码
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
否则可能得到如下异常:
写道
Circular view path [login]: would dispatch back to the current handler URL [/spring4/login] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
相关文章推荐
- SharePoint 2010 – The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more inform
- Use MFC in a Static Library,This may be due to a corruption of the heap....
- this may be due to a corruption of the heap, which indicates a bug in ... or any of the DLLs it has
- This may be due to a corruption of the heap
- Inteface Buidler can't determine the type of "xx.xib" this may be due to a missing SDK.
- This may be due to a corruption of the heap!
- This may be due to a corruption of the heap, which indicates a bug in *.exe or any of the DLLs it has loaded.
- Error "The form cannot be rendered. This may be due to a misconfiguration......"的解决方案
- Creating An Instance Of The Com Component With Clsid {b9425246-4131-11d2-be48-004005a04edf} From The Iclassfactory Failed Due To The Following Error
- Unable to determine the principal end of an association between the types '***. The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations.
- UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
- How to programmatically change the default view of an InfoPath form
- hbase-default.xml file seems to be for an older version of HBase ,this version is 1.2.0
- The project was not built due to "Could not delete ...".Fix the problem, then try refreshing this project and building it since it may be inconsistent.
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
- Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a
- The only thing I can think of is to use something like "http://www.dyndns.org/cgi-bin/check_ip.cgi" others may have a be
- System.Security.Cryptography.CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 128 bytes. (RSACryptoServiceProv
- Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be