A starter web application project combining Scala, Spring, Spring MVC, Thymeleaf 2.0, Spring Security and twitter bootstrap.
Spring MVC is a powerful web development framework, however it needs to integrated with bunch of other libraries to make it really powerful! However putting together everything needed to get things off the ground is still pretty time consuming and challenging and one of the reasons why we are seeing one-stop frameworks like Play! become popular.
In this sample project, I also demonstrate using Scala with Spring MVC instead of Java. Additionally, I integrate with Spring Security and templating with Thymeleaf.
- Scala 2.9.2
- Spring 3.2.0 RELEASE
- Spring MVC 3.2.0
- Spring Security 3.2.0 M1
- Spring Security Scala Extensions - Scala extensions for spring
- Jacks Jackson module - Handle's serialization of objects to JSON. The default Jackson based mapper does not handle scala case classes.
- Thymeleaf 2.0 + Layout Plugin - Excellent templating engine. I use the layout dialect to use it for decorating as well.
- Bootstrap - Twitter's Bootstrap CSS
- Logback - for logging. Example showcases how to get Spring to use logback instead of Apache commons logging.
- Maven - For build and jetty integration
Checkout project, and simply do a mvn jetty:run and point your browser to http://localhost:8080/
Based on thymeleaf-spring-maven-archetype
Twitter: @zoheb
Web: zoheb.com