问题描述:
今天在使用MyBatis-Plus 的代码生成器AutoGenerator 时发生了一个
Exception in thread “main” java.lang.NoClassDefFoundError: freemarker/template/Configuration
原因分析:
没有加相关的依赖
解决方案:
在pom文件中加入freemarker依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>