具体错误org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘balanceService’: Unsatisfied dependency expressed through field ‘balanceDao’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘balanceDao1’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate1’ defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: com.stone.tx.dao [Xlint:invalidAbsoluteTypeName]

这个错误找了很久,前面百度说是什么jar包没有导后面发现原来是我的切入点表达式写错了,

原切入点表达式:Spring错误信息org.springframework.beans.factory.UnsatisfiedDependencyException
修改后的切面点表达式
Spring错误信息org.springframework.beans.factory.UnsatisfiedDependencyException

向这种百度找错误不要老找第一个报错的位置,尝试的去copy最后一个错误丢到百度上,可能解决掉最后一个错误,其他的错误也就全部没有了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-01-14
  • 2021-11-07
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-06
  • 2021-09-08
  • 2022-03-07
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案