Serving static content with Spring 3

前端 未结 3 1112
闹比i
闹比i 2021-02-20 07:11

I\'m trying to use resources mapping feature of Spring 3 and it does not seem to be working. Here is what I have:


    aaa<         


        
3条回答
  •  無奈伤痛
    2021-02-20 08:05

    You are mapping your app to the root context, so you should probably include

    
    

    in your mvc config. Have a look at 15.12.5 in the spring docs. I wasn't able to get mvc:resources to work without that setting when my dispatcher servlet was mapped to /. At least, that's what I seem to remember having to do when I configured this a couple of months ago in my project.

提交回复
热议问题