Where to place images/CSS in spring-mvc app?

后端 未结 7 1267
情话喂你
情话喂你 2020-12-05 08:14

I used Netbeans to create a Spring MVC 3.0 app. I have a simple controller and JSP view. The JSP view appears correctly except for an image that doesn\'t render. My direc

相关标签:
7条回答
  • 2020-12-05 09:04

    I was able to find a workable answer here: How to handle static content in Spring MVC?

    The problem was that my spring mvc dispatcher servlet was intercepting the calls to static resources. So I mapped Tomcat's default servlet to handle the static resources.

    0 讨论(0)
提交回复
热议问题