Skip to content

Commit b9cc959

Browse files
authored
Merge pull request #11608 from anuragkumawat/master
JAVA-8291 : Split or move spring-thymeleaf-2 module
2 parents 6a239e5 + 73d4b9a commit b9cc959

File tree

20 files changed

+76
-35
lines changed

20 files changed

+76
-35
lines changed

spring-web-modules/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<module>spring-thymeleaf-2</module>
4646
<module>spring-thymeleaf-3</module>
4747
<module>spring-thymeleaf-4</module>
48+
<module>spring-thymeleaf-5</module>
4849
<module>spring-boot-jsp</module>
4950
<module>spring-web-url</module>
5051
</modules>

spring-web-modules/spring-thymeleaf-2/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ This module contains articles about Spring with Thymeleaf
55
## Relevant Articles:
66

77
- [Working with Enums in Thymeleaf](https://www.baeldung.com/thymeleaf-enums)
8-
- [Changing the Thymeleaf Template Directory in Spring Boot](https://www.baeldung.com/spring-thymeleaf-template-directory)
98
- [Spring Request Parameters with Thymeleaf](https://www.baeldung.com/spring-thymeleaf-request-parameters)
109
- [Thymeleaf lists Utility Object](https://www.baeldung.com/thymeleaf-lists-utility)
1110
- [Spring Path Variables with Thymeleaf](https://www.baeldung.com/spring-thymeleaf-path-variables)
1211
- [Working with Arrays in Thymeleaf](https://www.baeldung.com/thymeleaf-arrays)
1312
- [Working with Boolean in Thymeleaf](https://www.baeldung.com/thymeleaf-boolean)
1413
- [Working With Custom HTML Attributes in Thymeleaf](https://www.baeldung.com/thymeleaf-custom-html-attributes)
15-
- [How to Create an Executable JAR with Maven](https://www.baeldung.com/executable-jar-with-maven)
16-
- [Spring MVC Data and Thymeleaf](https://www.baeldung.com/spring-mvc-thymeleaf-data)
1714
- [[<-- prev]](/spring-thymeleaf)

spring-web-modules/spring-thymeleaf-2/src/main/resources/templates-2/participants.html

-32
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Spring Thymeleaf
2+
3+
This module contains articles about Spring with Thymeleaf
4+
5+
## Relevant Articles:
6+
7+
- [Changing the Thymeleaf Template Directory in Spring Boot](https://www.baeldung.com/spring-thymeleaf-template-directory)
8+
- [How to Create an Executable JAR with Maven](https://www.baeldung.com/executable-jar-with-maven)
9+
- [Spring MVC Data and Thymeleaf](https://www.baeldung.com/spring-mvc-thymeleaf-data)
10+
- [[<-- prev]](/spring-thymeleaf)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>spring-thymeleaf-5</artifactId>
7+
<name>spring-thymeleaf-5</name>
8+
<packaging>war</packaging>
9+
10+
<parent>
11+
<groupId>com.baeldung</groupId>
12+
<artifactId>parent-boot-2</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<relativePath>../../parent-boot-2</relativePath>
15+
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.springframework.boot</groupId>
20+
<artifactId>spring-boot-starter-web</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-test</artifactId>
29+
<scope>test</scope>
30+
</dependency>
31+
</dependencies>
32+
33+
<build>
34+
<finalName>spring-thymeleaf-5</finalName>
35+
</build>
36+
37+
<properties>
38+
<tomcat7-maven-plugin.version>2.2</tomcat7-maven-plugin.version>
39+
</properties>
40+
41+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.baeldung.thymeleaf;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class Application {
8+
public static void main(String[] args) {
9+
SpringApplication.run(Application.class, args);
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#spring.thymeleaf.prefix=classpath:/templates-2/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration scan="true" scanPeriod="15 seconds" debug="false">
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>[%d{ISO8601}]-[%thread] %-5level %logger - %msg%n</pattern>
6+
</encoder>
7+
</appender>
8+
9+
<root level="INFO">
10+
<appender-ref ref="STDOUT" />
11+
</root>
12+
</configuration>

0 commit comments

Comments
 (0)