
JAVA异常
Ginty
感谢所有我厌恶的人
展开
-
Spring-mvc JSON解析异常
Spring-mvc Controller报异常:Could not write JSON: No serializer found for class XXX(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS)原因: 根据每个项目需求不同,里面的属性也会不同。我们现在做的项目是采用了MINA,那么接触过MINA的小伙伴应该都知道MINA有一个IOS原创 2017-08-15 14:16:48 · 893 阅读 · 0 评论 -
Error creating bean with name 'XXX' in the [XXXX.xml] --The import XXX cannot be resolved
错误样式提示错误创建bean,并且在控制台罗列了很多类似 ‘The import XXX cannot be resolved’ 这样的记录解决办法1.首先检查配置文件bean的name是否正确 2.检查注解注入是否有误 3.检查提示的配置文件在服务器中是否编译成功 4.若以上步骤都无误,则使用菜单栏 project - > clean,重新编译报错项目 5.若还无效,删掉全部import,原创 2017-10-18 17:29:39 · 364 阅读 · 0 评论 -
JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer
现象java 工程项目上面报红色小×,能正常运行(但是瞅着真是别扭)解决pom.xml文件中进行如下配置:<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>原因可能转载 2017-10-16 19:01:16 · 1249 阅读 · 0 评论