去除final使用@Autowired
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.List;
|
||||
@Api(tags = "${entity.description}接口")
|
||||
@RequestMapping("/lili/${entity.classNameLowerCase}")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
|
||||
public class ${entity.className}Controller {
|
||||
|
||||
private final ${entity.className}Service ${entity.classNameLowerCase}Service;
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
|
||||
public class ${entity.className}ServiceImpl extends ServiceImpl<${entity.className}Mapper, ${entity.className}> implements ${entity.className}Service {
|
||||
|
||||
private final ${entity.className}Mapper ${entity.classNameLowerCase}Mapper;
|
||||
|
||||
Reference in New Issue
Block a user