O'Reilly logo
  • suryanshu thinks this is interesting:

So, the conclusion is that InternalResourceViewResolver resolves the actual view file path by prepending the configured prefix value and appending the suffix value with the view name—the view name is the value usually returned by the controller method. So, the controller method doesn't return the path of the actual view file; it returns only the logical view name. It is the job of InternalResourceViewResolver to form the URL of the actual view file correctly.