viernes, enero 27, 2012

Once upon a time and long ago, I heard someone singing, Soft and low (Distant Melody - Peter Pan)




Thymeleaf Spring-MVC Maven Archetype aims to create a web application that uses Thymeleaf template engine and Spring Framework.

The main goal of Thymeleaf is to provide an elegant and well-formed way of creating HTML 5 templates. Its Standard and SpringStandard dialects allow you to create powerful natural templates, that can be correctly displayed by browsers and therefore work also as static prototypes.

You can read more about Thymeleaf at:


When you create an application using this archetype, generated web application will be composed by two html templates in WEB-INF/views, one for showing a form using HTML5 and CSS3 and another one for listing inserted data.

Spring controllers are located in controller package.

Application is internationalized too using LocaleChangeInterceptor with en_US as default locale. Properties are in src/main/resources/locale folder.

And finally server-side validation is provided by using JSR-303 provider.

Versions of used jars are:

  • Spring Framework: 3.0.5
  • Thymeleaf: 1.1.2
  • Hibernate-Validator: 4.1.0
  • Slf4j: 1.5.10
  • Servlet-api: 2.5
  • JUnit: 4.9

You can install this archetype from source or from jar file:

From source:

mvn clean install
mvn archetype:generate -DarchetypeCatalog=local

From jar:


and execute:

mvn install:install-file \ -DgroupId=com.lordofthejars \ -DartifactId=thymeleaf-spring-maven-archetype \ 
-Dversion=DOWNLOADED_VERSION \ -Dpackaging=jar 
-Dfile=PATH_TO_JAR_YOU_DOWNLOADED/thymeleaf-spring-maven-archetype-VERSION.jar


Maven repository is located at 


and source code is stored at  https://github.com/maggandalf/thymeleaf-spring-maven-archetype

For any question regarding of how to use this archetype or any issue/improvement, do not hesitate to contact me or open a new issue on github.

I wish this archetype can help you to start a new project using Thymeleaf template engine.

Music: http://www.youtube.com/watch?v=7EaGSocm5dc


3 comentarios:

Ted Vinke dijo...

Thanks!

If you used the archetype but increased the Spring version to e.g. 3+ then you'll also need an additional dependency - because they split up things in between version.

Next to spring-webmvc additionally add spring-web:


org.springframework
spring-web
${org.springframework-version}

Libin Huang dijo...

20160509libinmulberry outlet store
true religion outlet
herve leger dresses
pandora jewelry
cartier watches
polo ralph lauren
cheap oakley sunglasses
tory burch outlet online
nfl jersey wholesale
swarovski jewelry
ray ban sunglasses
michael kors online
michael kors outlet
snapbacks wholesale
lebron james shoes
nike blazer pas cher
michael kors outlet online
mcm backpack
coach outlet
tory burch outlet online
michael kors handbags
calvin klein underwear
kate spade outlet
oakley sunglasses
michael kors outlet
louis vuitton handbags
true religion canada
asics,asics israel,asics shoes,asics running shoes,asics israel,asics gel,asics running,asics gel nimbus,asics gel kayano
gucci outlet online
michael kors outlet
air max 2015
nike air force 1
swarovski crystal
fitflops shoes
timberland shoes

chenlina dijo...

chenlina20160716
jordan 11 concord
coach outlet
cheap nfl jerseys
kate spade handbags
giuseppe zanotti sandals
cartier watches
kate spade outlet
nike air max
michael kors canada
ray ban sunglasses
giuseppe zanotti
toms outlet
basketball shoes
michael kors handbags
celine bags
kate spade
adidas ultra boost
christian louboutin shoes
tory burch handbags
christian louboutin shoes
louis vuitton handbags
kobe 11
coach factory outlet
kate spade handbags
ghd flat iron
coach outlet online
hollister outlet
oakley sunglasses
louis vuitton outlet
air force 1
air max 90
toms shoes
tory burch handbags
jordan retro 11
cheap jordan shoes
coach factory outlet
oakley vault
louis vuitton
designer handbags
nike basketball shoes
as

Donate If You Can and Find Post Useful