问题:这是ognl的版本冲突,可以把低版本的去掉;
解决:这是ognl的版本冲突,可以把低版本的ognl的jar包的去掉;
我把ognl包都去掉,加上下面的包,用里面自带的ongl
<!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-core -->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.30</version>
</dependency>