Search This Blog

Tuesday, July 30, 2019

Solved: Spring boot: Unable to load javascript library through webjar !!


In one of my Spring boot application  there was a struggle to load bootstrap, jquery through webjars.

Though entries were fine in my gradle build file like below :


implementation 'org.webjars:jquery:2.1.4'

implementation 'org.webjars:bootstrap:3.3.5'


After some googling and document reading figured out that webjar-locator is also needed to be there to resolve dependencies. 

hence I made one more entry as below :


implementation 'org.webjars:webjars-locator:0.36'

I hope that it's correct fix. For maven geeks same can be translated in xml to write in pom.xml :)

Cheers,
Kapil 


No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts