redis整合异常总结

问题:org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Property or field 'getAll' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject' - maybe not public?

@Cacheable(value = "redisCacheManager",key = "getAll")上面的key应该写成key="'getAll'",里面加个单引号


问题:Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'imagepath'. It was either not specified and/or could not be found for the javaType (java.io.File) : jdbcType (null) combination.
Caused by: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'imagepath'. It was either not specified and/or could not be found for the javaType (java.io.File) : jdbcType (null) combination.
解决:在上传文件时,实体类应该是String类型的imagepath,我写成File类型,导致前台与之不匹配。


问题:The server cannot or will not process the request due to something that is p

解决:页面里面日期类型问题

问题:org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'messageBoardController' for bean class [com.jiangfx.controller.MessageBoardController] conflicts with existing, non-compatible bean definition of same name and class [com.jiangfx.controller.manager.MessageBoardController]

解决:两个congtroller名字一个,不在一个包也不行。


问题:org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.jiangfx.entity.Banner
解决:实体类没有实现Serializable接口

猜你喜欢

转载自www.cnblogs.com/smfx1314/p/9091927.html