mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 05:19:00 +08:00
✨ Introducing new features. 优化代码生成 controller 使用条件构造器注入
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user