angular的请求头必须修改为form表单的请求类型:
appModule.service('service',function($http){
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
$http.defaults.headers.post['X-Requested-With'] = 'XMLHttpRequest';
$http.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
$http.defaults.headers.put['X-Requested-With'] = 'XMLHttpRequest';
});