thymeleaf wip

This commit is contained in:
Patrick Haßel 2024-10-15 13:16:22 +02:00
parent 71c1592ba6
commit b25b3377b8
3 changed files with 35 additions and 0 deletions

View File

@ -34,10 +34,17 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>3.3.4</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>

View File

@ -0,0 +1,23 @@
package de.ph87.data.series;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Slf4j
@Controller
@Transactional
@RequiredArgsConstructor
public class SeriesController {
@GetMapping("/")
public String index(@NonNull final Model model) {
// model.addAttribute("series", getAll());
return "index";
}
}

View File

@ -0,0 +1,5 @@
<table>
<!-- <tr th:each="serie: ${series}">-->
<!-- <td th:text="${serie.name}"></td>-->
<!-- </tr>-->
</table>