zoukankan      html  css  js  c++  java
  • 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接口

  • 相关阅读:
    说说该死的Google Android Market
    由HTML5绘制地图说开去
    unicode解码小工具
    IntelliJ IDEA 的安装、配置与使用
    再次强调!考试必带的十几样物品,一样也不能少
    Redis 实现限流的三种方式
    Linux配置/etc/resolv.conf详解
    人生哲学
    一文教你如何高效使用 IDEA !
    Mysql5.7.30_配置参数
  • 原文地址:https://www.cnblogs.com/smfx1314/p/9091927.html
Copyright © 2011-2022 走看看