Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When using spring mvc with Kotlin, I prefer to use data classes with immutable fields. This works for most cases. However, when I'm using MultipartFile as a field on a request object, I am forced to use a var field and make the field nullable in order to get it to work.
I've attached a sample project exhibiting this behavior. Just follow the instructions in the README.txt.