Spring MVC - upload file is blocked by spring security
I resolved this problem, I added ?${_csrf.parameterName}=${_csrf.token} to end of my form action
<form method="POST" action="uploadOneFile?${_csrf.parameterName}=${_csrf.token}" enctype="multipart/form-data">
Now it works!