Today I upgraded from Spring Security 3.1.4 with the separate java config dependency, to the new 3.2.0 release which includes java config. CSRF is on by default and I know
I use thymeleaf with Spring boot. I had the same problem. I diagnosed problem viewing source of returned html via browser. It should be look like this:
Spring Security Example
If you can't see this html code. You may be forgot to put th: tag before name and value.
login.html
Spring Security Example
Invalid username and password.
You have been logged out.