Material design with WebJars

Our application is already great but it seriously leaves something to be desired in terms of aesthetics. You may have heard of material design. It is Google's take on flat design.

We will use Materialize (http://materializecss.com), a great looking responsive CSS and JavaScript library, just like Bootstrap.

Material design with WebJars

We will now get to use WebJars. Add jQuery and Materialize CSS to our dependencies:

compile 'org.webjars:materializecss:0.96.0'
compile 'org.webjars:jquery:2.1.4'

The way a WebJar is organized is completely standardized. You will find the JS and CSS files of any library in /webjars/{lib}/{version}/*.js.

For instance, to ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.