Thymeleaf -Variable zu JavaScript
<script th:inline="javascript">
var username = [[${session.user.name}]];
</script>
Wild Wren
<script th:inline="javascript">
var username = [[${session.user.name}]];
</script>