DEV Community

Xavier Font
Xavier Font

Posted on

How can I access a property of my object Thymeleaf (Spring Boot)

1

Current output on my website...

This is the personal page of --- Optional[User(id=111, username=Juan Lopez, password=Juanini123, post=Hoy es un gran dia)]

Desired output would be just to show the name, "Juan Lopez"

My HTML (Thymleaf)...

<html lang="en" xmlns:th="http://www.thymeleaf.org"&gt
<head>
    <title>Personal Profile</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
    <div class="positionlist" th:unless="${#lists.isEmpty(personalUser)}">

Top comments (0)