Ten minutes migration guide outdated?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Ten minutes migration guide outdated?

Keanu
Hello there,

I'm fairly new to spring boot and thymeleaf. In order to use HTML5 and Uikit I wanted to switch from thymeleaf 2 to 3 but it seems really difficult. The examples from the ten minutes migration guide are not working for me.

I use the configuration class from the guide 1:1 and my pom.xml has the following two dependencies.

		<dependency>
			<groupId>org.thymeleaf</groupId>
			<artifactId>thymeleaf-spring3</artifactId>
			<version>3.0.9.RELEASE</version>
		</dependency>

		<dependency>
			<groupId>org.thymeleaf</groupId>
			<artifactId>thymeleaf-spring4</artifactId>
			<version>3.0.9.RELEASE</version>
		</dependency>

Now the configuration class has several errors. For example SpringResourceTemplateResolver has no method setPrefix(java.lang.String).

How do I solve this?

Additionally the example loads templates from /WEB-INF/templates/. How can I keep them loading from resources folder?

Kind regards
Keanu