Error:
The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files
Exception in thread “main” java.lang.Error: Unresolved compilation problems:
Unhandled exception type BeansException
Unhandled exception type BeansException
将spring jar包换到高版本就解决问题了