http://localhost:8080/examples/servlet/GetTreeMenu------你这是不是写错啦,是gettreemenu.class名字吧,
我写成功过这个,但是写法和你不同,我放在service方法中,response.getOutputStream()返回的是ServletOutputStream接口,你就用它标准的方法,把你写的对象放在ByteArrayOutputStream中,然后通过ServletOutputStream写出去看看,
我写成功过这个,但是写法和你不同,我放在service方法中,response.getOutputStream()返回的是ServletOutputStream接口,你就用它标准的方法,把你写的对象放在ByteArrayOutputStream中,然后通过ServletOutputStream写出去看看,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货