去除final使用@Autowired

This commit is contained in:
lifenlong
2021-05-13 15:07:03 +08:00
parent 3785bdb3bb
commit a10c38f3c1
350 changed files with 1325 additions and 1659 deletions

View File

@@ -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;

View File

@@ -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;