zoukankan      html  css  js  c++  java
  • Spring与MyBatis-day05

    MyBatisSpring整合,其主要任务是将MyBatisSqlSessionFactory交由Spring容器来管理。

    Mybatis.xml

     

    日志文件

     

    Application.xml

     

    异常

    org.springframework.beans.factory.BeanCreationException:

    Error creating bean with name 'mySqlsessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:

    Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource': no matching editors or conversion strategy found

     

    优化,当出现多个dao接口时,会造成代码臃肿

     

    Tx事务

     

    Caused by: org.springframework.beans.factory.BeanCreationException:

    Error creating bean with name 'txAdvice':

    Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager';

     nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:

    No bean named 'transactionManager' available

     

  • 相关阅读:
    状态机
    折半查找函数
    宽字符与多字符相互转换
    安装交叉编译工具
    make menuconfig提示'make menuconfig' requires the ncurses libraries.
    IIC总线
    关于文字编码
    傅里叶变换
    韦东山视频_第27课_dma设备驱动程序
    linux内核宏之——-PERF_ALIGN
  • 原文地址:https://www.cnblogs.com/csslcww/p/9551864.html
Copyright © 2011-2022 走看看