---
title: "异常：JSON: property \"xxx\" has no getter method in class "
author: "mowan"
date: "2014-04-18T18:18:32Z"
tags: []
categories: ["编程语言"]
slug: "json-property-xxx-has-no-getter-method-in-class"
draft: false
lastmod: "2014-04-18T18:18:31Z"
id: 2048483
url: "https://mowan.iteye.com/blog/2048483"
---

# 异常：JSON: property "xxx" has no getter method in class ""

解决:声明bean为public class xxx,必须是public,我用默认类型(class xxx)都不行