具体错误信息
BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/google/gson/JsonSyntaxException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.config.internalTransactionAdvisor’: Cannot resolve reference to bean ‘org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0’ while setting bean property ‘transactionAttributeSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0’: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/google/gson/JsonSyntaxException
解决:环境上缺失了gson的jar包,导致引用时找不到jar包,把jar包放到对应目录就OK了。



