https://www.caoyuqian.cn/2017/12/12/nosuchfielderror-default-incompatible-improvements/
版本不对。使用新版本:
1 2 3 4 5 6 |
<!-- https://mvnrepository.com/artifact/org.freemarker/freemarker --> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.23</version> </dependency> |
而不是:
1 2 3 4 5 |
<dependency> <groupId>freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.18</version> </dependency> |