Chinese President Hu Jintao has signed several agreements during his visit to Spain to improve relations and trade between the two countries .