zoukankan      html  css  js  c++  java
  • 警告: Exception encountered during context initialization

    警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookShopService' defined in class path resource [tx.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.sun.proxy.$Proxy10 implementing com.figsprite.spring.BookShopDao,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,org.springframework.core.DecoratingProxy' to required type 'com.figsprite.spring.BookShopDaoImpl' for property 'bookShopDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.figsprite.spring.BookShopDao,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,org.springframework.core.DecoratingProxy' to required type 'com.figsprite.spring.BookShopDaoImpl' for property 'bookShopDao': no matching editors or conversion strategy found
    
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookShopService' defined in class path resource [tx.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.sun.proxy.$Proxy10 implementing com.figsprite.spring.BookShopDao,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,org.springframework.core.DecoratingProxy' to required type 'com.figsprite.spring.BookShopDaoImpl' for property 'bookShopDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.figsprite.spring.BookShopDao,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,org.springframework.core.DecoratingProxy' to required type 'com.figsprite.spring.BookShopDaoImpl' for property 'bookShopDao': no matching editors or conversion strategy found
    View Code

      AOP切点表达式写错了,报的是DataSource空指针??喵喵???

      出现这种错误多半是标签的问题,要细细检查一下

  • 相关阅读:
    针对大数据量 高并发量网站的解决方案
    session cookie 在用户登录中的使用
    彻底弄懂HTTP缓存机制及原理
    cookie 和session 的区别详解
    常见的浏览器兼容性问题
    内容分发网络(CDN)
    表现与数据分离、Web语义化
    关于bootstrap样式重写,无法覆盖的问题
    判断一个字符串中出现次数最多的字符
    [译]SQL Passion Week 10: 计划缓存
  • 原文地址:https://www.cnblogs.com/figsprite/p/10860325.html
Copyright © 2011-2022 走看看