spring+jax 出现java.io.Serializable is an interface, and JAXB can't handle interfaces 原因是我的webservice方法中   有一个BaseEntity虚类 public abstract class BaseEntity<ID extends Serializable> { public abstract ID getId(); public abstract void setId(ID id); 其中get…
问题: 在整合spring+cxf时报错java.util.Map is an interface, and JAXB can't handle interfaces. 解决方法: 将服务端的services接口返回的Map类型的值改为HashMap. 因为在做webService复杂类型值传递时,返回值的类型不要用接口类型.例如List应该改为ArrayList,Map改为HashMap等.…
提示错误信息 www@iZ236j3sofdZ:~$ ifconfig Command 'ifconfig' is available in '/sbin/ifconfig' The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative privil…
修改了 spring web 项目的 context root 为 / 之后,在启动项目时,会导致 WebApplicationContext  初始化两次,下面是其初始化日志: 第一次初始化: 四月 22, 2016 4:30:33 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext 第二次初始化: 四月 22, 2016 4:30:39 下午…
Ubuntu下普通用户用sudo执行命令时报如题所示错误,解决方法就是在/etc/sudoers文件里给该用户添加权限.如下: 1.切换到root用户下 2./etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是:chmod u+w /etc/sudoers 3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名) ps…
问题 : 在用VS2008写一段代码,算法都没有问题,但是调试的时候发现出了main之后就报 Stack around the variable 'xxx' was corrupted 的错误,后来发现是数组越界造成的.测试下面类似情形的代码: #include <iostream>   using namespace std;   int main()   {       int i, j, tmp;        int a[10] = {0};// 0, 1, ... , 9      …
我们在使用Android Studio开发完应用程序后,都要将打好的apk安装包上传到各大应用市场,但是有时候上传时应用市场会出现提交的安装包不能通过应用市场的aapt解析而被打回的情况. 他们使用aapt解析我们的apk文件的过程中会报错,出现类似于 getting 'android:xxx' attribute: attribute is not a string value 这种错误,xxx可能是Label,也可能是name.这是什么原因呢? 出现这种错误的大部分原因是,我们在声明Labe…
转自:http://blog.csdn.net/tiantiandjava/article/details/46125141 项目中想用@RequestBody直接接收json串转成对象 网上查了使用方法,看着非常简单,不过经过测试很快发现页面直接报415错误. <body> <h1>HTTP Status 415 - </h1> <HR size="1" noshade="noshade"> <p> &l…
CentOS6系统下,普通用户使用sudo执行命令时报错: xxx is not in the sudoers file.This incident will be reported" 解决方法就是在/etc/sudoers文件里给该用户添加权限.如下: 1.切换到root用户下 2./etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是:chmod u+w /etc/sudoers 3.编辑sudoers文件vim /etc/sudoers…
系统:WIN8.1 数据库:Oracle 11GR2 开发工具:MyEclipse 8.6 框架:Spring3.2.9.SpringMVC3.2.9.MyBatis3.2.8 使用SpringMVC开发的时候,页面如果有日期格式的数据,后台接受也是java.util.Date,则报告400错误 .下面是解决方案的演示示例: 这个是实体类,里面createDate就是java.util.Date类型 import java.util.Date; public class User { priva…