I'm using the latest version of Thymeleaf with Spring Boot project. I run into a very strange issue where I'm given a stackoverflow error when I use autofocus or required attributes in an element tag. I'm using the latest version of Twitter Bootstrap project. In my project I'm using: Spring Security, ThymeLeaf, and Twitter Bootstrap. The configuration is done using Java Configuration. Below is the code that produces stackoverflow. If I remove autofocus and required attributes the application runs fine.
<form class="form-signin" role="form">
<h2 class="form-signin-heading">Please sign in</h2>
<input type="email" class="form-control" placeholder="Email address" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
<label class="checkbox">
<input type="checkbox" value="remember-me"> Remember me
</label>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
required="required"andautofocus="autofocus"?