今天做一个shiro实例的时候,用mvn jetty:run运行maven web项目报错:
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/PropertyUtils
这是因为缺少一个包commons.beanutils,所以在pom.xml里加上下面这段,再运行mvn jetty:run就行了
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.3</version> </dependency>