thymeleaf wip
This commit is contained in:
parent
71c1592ba6
commit
b25b3377b8
7
pom.xml
7
pom.xml
@ -34,10 +34,17 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||||
|
<version>3.3.4</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.eclipse.paho</groupId>
|
<groupId>org.eclipse.paho</groupId>
|
||||||
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
||||||
|
|||||||
23
src/main/java/de/ph87/data/series/SeriesController.java
Normal file
23
src/main/java/de/ph87/data/series/SeriesController.java
Normal 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";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
5
src/main/resources/templates/index.html
Normal file
5
src/main/resources/templates/index.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<table>
|
||||||
|
<!-- <tr th:each="serie: ${series}">-->
|
||||||
|
<!-- <td th:text="${serie.name}"></td>-->
|
||||||
|
<!-- </tr>-->
|
||||||
|
</table>
|
||||||
Loading…
Reference in New Issue
Block a user