spring - MVC resources doesn't import all files -
in dispatcher-servlet have mapping resources tag <mvc:resources
>` spring mvc:
<!-- mvc resources tag magic --> <mvc:resources mapping="/resources/**" location="/resources/" />
in resources folder have css, js, fonts, icons , other resources.
everything works fine, when add new css files resources/css folder doesn't import pages :(
example :
dispatcher servlet
<!-- mvc resources tag magic --> <mvc:resources mapping="/resources/**" location="/resources/" />
the resources folder webapp/resources/css/
bootstrap.css(working) bootstrap.min.css(working) jquery-datatables/cssfiles.....(not working)
i have found solution problem
in fact mcv:ressources doesn't import ressources, create mapping if request /resources/css/bootstrap.css page anywhere in web app , redirected ressources folder.
the problem had framework called sitemesh works asp.net master page it's defines design pattern , import files pages specified ...
it misunderstanding, thank you
Comments
Post a Comment