---
title: "fastjson序列化异常"
author: "hehaisu"
date: "2015-01-24T14:15:54Z"
tags: ["Struts", "json"]
categories: ["编程语言"]
slug: "fastjson"
draft: false
lastmod: "2015-01-24T14:15:54Z"
id: 2179220
url: "https://heiwado.iteye.com/blog/2179220"
---

struts2与利用json与前台交互，使用@JSON注解时要注意，只有要序列化的对象才同时写get set方法，如服务类只写set方法注入，否则会抛出异常