Hi Linxin,
Yes. You can use any Spring version after 3.1.x, including 4.
Let us know if you experience any issues.
Note however that Camunda currently transitively pulls in Spring 3.1.x so you need to override that with an explicit dependency on Spring where you set a different version.
We currently have an issue addressing this:
https://app.camunda.com/jira/browse/CAM-3359
All the best,
Daniel