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接口

  • 相关阅读:
    微信小程序开发工具初始化代码仓库
    微信小程序开发如何初始化远程仓库并 PUSH
    Git 提示用户密码错误如何修改
    MariaDB 在创建外键的时候提示 1005 错误
    Fiddler实现移动端手机抓包
    Windows 安装 Go语言开发环境以及使用
    laravel队列,事件简单使用方法
    视图
    laravel Passport
    多台服务器 同时部署一套代码
  • 原文地址:https://www.cnblogs.com/smfx1314/p/9091927.html
Copyright © 2011-2022 走看看