Error:
=====================================================================================================
Project Start deployment Error:
Java.lang.NoSuchMethodError:org.springframework.util.ReflectionUtils.doWithLocalFields (Ljava/lang/class; lorg/springframework/util/reflectionutils$fieldcallback;) V at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata ( Persistenceannotationbeanpostprocessor.java:418) at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata ( Persistenceannotationbeanpostprocessor.java:397) at Org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition ( Persistenceannotationbeanpostprocessor.java:333) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors (Abstractautowirecapablebeanfactory.java:872) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:495) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:458) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (Abstractbeanfactory.java:293) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:223)
Only a partial error is pasted here.
What is wrong and what is not, the key is this type of problem
Java.lang.NoSuchMethodError
How to solve is the most critical problem!!!
Analysis:
==========================================================================================
A huge amount of posts/articles have declared the root of the problem.
Instead of calling this class, the method in the class does not exist;
This is the method that is available in multiple classes;
Tossing and turning is not a match, the version is inconsistent, conflict, La La la mess. All right, how to fix it?
Solve:
==========================================================================================
① no matter what IDE you use, whether ecplise or myecplise or idea. Before you solve this problem, you need to understand one thing, which is to configure the JVM parameters before the project starts.
Reference: Http://www.cnblogs.com/sxdcgaq8080/p/8022096.html A look at the understanding.
② Adding a VM parameter
-xx:+traceclassloading
③ Restart Project after saving
"Error" project start deployment times wrong: Java.lang.NoSuchMethodError