zoukankan      html  css  js  c++  java
  • ssm中的某些异常

    ---恢复内容开始---

    (1)java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor
    添加aopalliance-alpha1.jar
    http://blog.csdn.net/sjzs5590/article/details/7348836
    (2)org.springframework.beans.NotWritablePropertyException: Invalid property 'SqlSessionFatoryBeanNames' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'SqlSessionFatoryBeanNames' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
    这种情况99%是属性名字没有写对

    (3)java.lang.ClassNotFoundException: org.mybatis.spring.SqlSessionFatoryBean

    有可能是自己所注册的class时候单词写错,也有可能是自己没有加载进去spring-mybatis.xml文件

    (4)项目本来好好的无意间所有的import前面都有小红叉,就import java.io.UnsupportedEncodingException;前面没有小红叉,将其删除,则所有的import前面都没有小红叉了

  • 相关阅读:
    分布式数据Hive——HQL
    RPM包管理-rpm命令管理
    软件包管理简介
    网络命令
    压缩解压缩命令
    其他基本命令
    文件搜索命令
    权限管理命令
    文件处理命令
    系统分区
  • 原文地址:https://www.cnblogs.com/wth21-1314/p/6878738.html
Copyright © 2011-2022 走看看