Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Spring Application Development

You're reading from   Mastering Spring Application Development Gain expertise in developing and caching your applications running on the JVM with Spring

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781783987320
Length 288 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Anjana Mankale Anjana Mankale
Author Profile Icon Anjana Mankale
Anjana Mankale
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Spring Mongo Integration FREE CHAPTER 2. Messaging with Spring JMS 3. Mailing with Spring Mail 4. Jobs with Spring Batch 5. Spring Integration with FTP 6. Spring Integration with HTTP 7. Spring with Hadoop 8. Spring with OSGI 9. Bootstrap your Application with Spring Boot 10. Spring Cache 11. Spring with Thymeleaf Integration 12. Spring with Web Service Integration Index

Spring Thymeleaf dependency

To get started with the Thymeleaf template engine, we need to add the following dependency in the pom.xml file:

  • The Thyemleaf library:
    • groupId: org.thymeleaf
    • artifactId: thymeleaf
    • version: 2.1.4 Release
  • The Spring-Thymeleaf plugin library:
    • groupId: org.thymeleaf
    • artifactId: thymeleaf-spring4
    • version: 2.1.4. Release

For testing the framework (the note version does not necessarily match that of the core), Thymeleaf requires Java SE 5.0 or newer. Besides, it depends on the following libraries:

  • unbescape 1.1.0 or later
  • ONGL 3.0.8 or later
  • Javassist 3.16.1-GA or later
  • slf4j 1.6.6 or later
  • Additionally, if you use the LEGACYHTML5 template mode, you will need the NekoHTML 1.9.21 or later

Spring MVC and Thymeleaf

In this section, let's look at configuring Thymeleaf in a Spring MVC framework. We can also use the SpringContext.xml file for Thymeleaf configuration, but since we have seen a lot of such examples in which have performed a configuration in an XML file, we shall look at...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image