From a83a19f69f5b78bded1c53e38fea181c26b901c7 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Sun, 16 Jul 2023 19:14:17 +0800 Subject: [PATCH] fix: TemplateException --- .../src/main/resources/templates/enjoy/controller.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl b/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl index e17c4216..2bec0661 100644 --- a/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl +++ b/mybatis-flex-codegen/src/main/resources/templates/enjoy/controller.tpl @@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController; #else import org.springframework.stereotype.Controller; #end -#if(controllerConfig.superClass) +#if(controllerConfig.superClass != null) import #(controllerConfig.buildSuperClassImport()); #end #if(withSwagger)