Tagged: spring-mvc

SpringBoot + Thymeleaf + i18n (Internationalization)

Hello again. This week I had to study how to implement i18n in a Spring Boot + Thymeleaf CRM application I am developing. Spring Boot really makes it easy to setup but while I was searching about it on the Web I found a lot of misinformation and so I decided to make a post about it. As usual, you can find the complete project on Github: https://github.com/mtrojahn/springboot-thymeleaf-i18n. Let’s start by the pom.xml:


As you can see, Application.groovy is pretty much the default for any Spring Boot application. I only changed @ComponentScan to lookup the package that...

Spring-Boot / Groovy / MVC “Hello World” example

The complete project can be found here: https://github.com/mtrojahn/spring-boot-groovy-mvc-simple This is yet another very basic example. This time I’ll show how to create get a Web-MVC Spring-Boot project started. You will notice I take the no-XML approach and I’ll try to keep my examples as XML-free as they can be because it’s hard to find fresh documentation about it on the Web. So, let me start with the build.gradle file:

As you can see, no big changes from my previous example. Basically all you have to do is change spring-boot-starter to spring-boot-starter-web. Ok, now let’s have a look on the...

%d bloggers like this: