org.springframework.http.converter.HTTPMEssageNotReadableException: Could not read JSON: Unexpected end-of-input in VALUE_STRING>
我相信我的JSON对象可能太长了。它有60种不同的身份证。我想删除所有内容,然后重新开始。我使用angualrjs $ http.put将它们带到那里。我正在使用带有ModelSvc的angularjs。我没有看到数据中列出的ID。
虽然bankInfoes /(id)返回数据,但localhost:9001 / bankInfoes不会返回任何数据。
这是我用来控制视图的angularjs。
timetrackingServices.factory('BankInfoSvc', ['$resource', '$rootScope', 'RootUrlSvc', 'ModelSvc', '$http',
function ($resource, $rootScope, RootUrlSvc, ModelSvc, $http) {
var initializeModel = function (bankInfo) {
var bankInfoResource = $resource(RootUrlSvc.rootUrls.bankInfoes + ':bankInfoId', {}, {
query: {method: 'GET', isArray: false}
});
bankInfoResource.query(function (data) {
var bankInfoes = data;
ModelSvc.model.bankInfoes = bankInfoes;
});
};
return {
initializeModel: initializeModel
};
}
]);
timetrackingServices.factory('ModelSvc', [
function () {
var model = {};
model.company = {};
model.bankinfoes = {};
model.printBossResponses = {};
model.config = {};
var isCompanyInitialized = function () {
return !angular.equals({}, model.company)
};
var isBankInfoInitialized = function () {
return !angular.equals({}, model.bankInfo)
};
var isPrintBossResponsesInitialized = function () {
return !angular.equals({}, model.printBossResponse)
};
return {
model: model,
isCompanyInitialized: isCompanyInitialized,
isBankInfoInitialized : isBankInfoInitialized,
isPrintBossResponsesInitialized : isPrintBossResponsesInitialized
}
}]);
@RequestMapping(value="/billPaymentOuts", method=RequestMethod.GET)
public List<BillPaymentOut> displayBillPaymentOutPage() {
...
return lList;
}