Spring 4 – addResourceHandlers not resolving the static resources

this worked,

   registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");

and in the jsp files I referred to the static resources like

<link href="https://stackoverflow.com/questions/25061237/resources/css/bootstrap.css" rel="stylesheet" media="screen">

Leave a Comment