20 lines
643 B
HTML
20 lines
643 B
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:th="http://www.thymeleaf.org"
|
|
layout:decorate="~{layouts/blank-layout}">
|
|
<head>
|
|
<title>Dashboard</title>
|
|
</head>
|
|
<body>
|
|
<h2>Welcome</h2>
|
|
<p>Spring Security Thymeleaf tutorial</p>
|
|
<!-- <div sec:authorize="hasRole('USER')">Text visible to user.</div>
|
|
<div sec:authorize="hasRole('ADMIN')">Text visible to admin.</div>
|
|
<div sec:authorize="isAuthenticated()">Text visible only to
|
|
authenticated users.</div>
|
|
Authenticated username:
|
|
<div sec:authentication="name"></div>
|
|
Authenticated user roles:
|
|
<div sec:authentication="principal.authorities"></div> -->
|
|
</body>
|
|
</html> |