具体错误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包没有导后面发现原来是我的切入点表达式写错了,
原切入点表达式:
修改后的切面点表达式
向这种百度找错误不要老找第一个报错的位置,尝试的去copy最后一个错误丢到百度上,可能解决掉最后一个错误,其他的错误也就全部没有了。