✨ Introducing new features. 优化代码生成 controller 使用条件构造器注入

This commit is contained in:
lbw committed 2021-07-22 08:32:29 +08:00
1 parent 7137a7278e
commit 620809c05e
1 file changed
+2 -2
@@ -26,7 +26,7 @@ import ${package}.${moduleName}.service.${className}Service;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
@@ -37,7 +37,7 @@ import org.springframework.web.bind.annotation.*;
* @date ${datetime}
*/
@RestController
@AllArgsConstructor
@RequiredArgsConstructor
@RequestMapping("/${pathName}" )
@Api(value = "${pathName}", tags = "${comments}管理")
public class ${className}Controller {