Wednesday, June 11, 2008
Spring Framework URL mapping quirks
My recent foray into developing using RESTful principles and resources has lead me to an interesting quirk in the Spring Framework, which I use for our company's primary application. As it turns out, the URL mapping scheme requires that you set 'alwaysUseFullPath' to true so that the entire path of a URL that gets submitted to the framework gets inspected to determine the proper controller mapping. Otherwise, it can lead to some quirks, like not submitting the request to the proper controller. I had to learn this the hard way through several hours of debugging.
Labels:
alwaysUseFullPath,
rest,
restful,
spring,
spring framework,
url,
url mapping,
urls
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment