mybaties controller中总会优先执行方法

@ModelAttribute
    public CheckLoanContract get(@RequestParam(required=false) String id) {
        CheckLoanContract entity = null;
        if (StringUtils.isNotBlank(id)){
            entity = checkLoanContractService.get(id);
        }
        if (entity == null){
            entity = new CheckLoanContract();
        }
        return entity;
    }

原文地址:https://www.cnblogs.com/lengzhijun/p/5876918.html