在 Thymeleaf 中添加按钮,可以使用如下格式:

<button type='button' th:text='Button Text'>Button</button>

其中,type='button' 表示按钮类型为普通按钮,th:text 属性指定了按钮文本的值,可以根据需要进行修改。如果不需要动态设置按钮文本,可以直接写为:

<button type='button'>Button</button>