项目报错:java.lang.ClassNotFoundException: org.apache.commons.beanutils.DynaBean

java.lang.ClassNotFoundException: org.apache.commons.beanutils.DynaBean_xml

 

解决方法:

在pom.xml中加入如下依赖:

<dependency>
    <groupId>commons-beanutils</groupId>
    <artifactId>commons-beanutils</artifactId>
    <version>1.8.3</version>
</dependency>

如果添加了上面的依赖还是不行的话可以试试将下面的dependency加入pom.xml试试

<dependency>
  <groupId>commons-collections</groupId>
  <artifactId>commons-collections</artifactId>
  <version>3.2.1</version>
</dependency>
<dependency>
  <groupId>commons-lang</groupId>
  <artifactId>commons-lang</artifactId>
  <version>2.6</version>
</dependency>