完善代码生成

This commit is contained in:
2023-11-17 09:27:39 +08:00
parent d5fac495f9
commit f2857e33c5

View File

@@ -32,6 +32,7 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -154,6 +155,7 @@ public class Codegen {
.addModifiers(Modifier.PUBLIC)
.addAnnotation(Service.class)
.addAnnotation(Slf4j.class)
.addAnnotation(Transactional.class)
.superclass(
ParameterizedTypeName.get(
ClassName.get(BaseService.class),