I am working in Spring framework, where images, css and javascript files are loading properly. But when font-awesome css import font-awesome fonts it is not working. I have not done any spring configuration for resources.
I have attached my file layout and output below
<div class="text-center product_overlayIncrementBtn">
<button class="btn btn-success product_overlayDecBtn">
<i class="fa fa-minus"></i>
</button>
<button class="btn btn-success product_overlayAddBtn">
<i class="fa fa-plus"></i>
</button>
</div>
I searched and tried lot, but did not find what I'm doing wrong. Please help me out as I am trying from last 20 hours and still have not succeeded.
Well, I have found the solution. We just need to put into the web.xml file below code and program working correctly hurray....
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With