SpringMVC and static resources

后端 未结 5 1364
野的像风
野的像风 2020-12-31 14:55

Im new in java and spring. I\'m trying to make hello world app and don\'t get what i\'m doing wrong.

here is my directory structure:

test_app
-pom.xm         


        
5条回答
  •  [愿得一人]
    2020-12-31 15:37

    I configure the default servlet in web.xml to serve all the static assets, so just route request will reach the controllers:

    
        default
        /resources/*
    
    

提交回复
热议问题