First of all, it has nothing to do with 'post' or 'put' requests,request is just a type, I need to look at the relevant code in period.getYears() for help, or look at your post request and put request code, there must be something wrong