Skip to content

A starter web application project combining Scala, Spring, Spring MVC, Thymeleaf 2.0, Spring Security and twitter bootstrap.

Notifications You must be signed in to change notification settings

heuet/scala-springmvc-thymeleaf-bootstrap-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scala-springmvc-thymeleaf-bootstrap-template

A starter web application project combining Scala, Spring, Spring MVC, Thymeleaf 2.0, Spring Security and twitter bootstrap.

What is this?

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.

Stack

  • 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

How to run

Checkout project, and simply do a mvn jetty:run and point your browser to http://localhost:8080/

Credits

Based on thymeleaf-spring-maven-archetype

Contact

Twitter: @zoheb

Web: zoheb.com

endorse

About

A starter web application project combining Scala, Spring, Spring MVC, Thymeleaf 2.0, Spring Security and twitter bootstrap.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 54.9%
  • Scala 40.4%
  • CSS 4.7%