mirror of https://gitee.com/stylefeng/roses
【7.2.2】更新注解
parent
8ed89c8c35
commit
730967e4d8
|
@ -8,10 +8,10 @@ import cn.stylefeng.roses.kernel.security.database.annotation.ProtectedField;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.executor.parameter.ParameterHandler;
|
||||
import org.apache.ibatis.plugin.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.lang.reflect.Field;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.util.Properties;
|
||||
|
@ -27,7 +27,7 @@ import java.util.Properties;
|
|||
@Intercepts({@Signature(type = ParameterHandler.class, method = "setParameters", args = PreparedStatement.class),})
|
||||
public class ParameterInterceptor implements Interceptor {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private EncryptAlgorithmApi encryptAlgorithmApi;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,10 +7,10 @@ import cn.stylefeng.roses.kernel.security.database.annotation.ProtectedField;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.executor.resultset.ResultSetHandler;
|
||||
import org.apache.ibatis.plugin.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.lang.reflect.Field;
|
||||
import java.sql.Statement;
|
||||
import java.util.List;
|
||||
|
@ -28,7 +28,7 @@ import java.util.Properties;
|
|||
@Intercepts({@Signature(type = ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})})
|
||||
public class ResultInterceptor implements Interceptor {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private EncryptAlgorithmApi encryptAlgorithmApi;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -13,9 +13,9 @@ import cn.stylefeng.roses.kernel.timer.modular.param.SysTimersParam;
|
|||
import cn.stylefeng.roses.kernel.timer.modular.service.SysTimersService;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
@ -30,7 +30,7 @@ import java.util.stream.Collectors;
|
|||
@Component
|
||||
public class TimerMigrationImpl implements AccessMigrationApi {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private SysTimersService sysTimersService;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -8,12 +8,12 @@ import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
|||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestPart;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||
@ApiResource(name = "数据迁移控制器")
|
||||
public class MigrationController {
|
||||
|
||||
@Autowired
|
||||
@Resource
|
||||
private MigrationService migrationService;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue