smartdns使用指南_SmartDNS 使用教程(PLUS+版)

SmartDNS 使用教程(PLUS+版)

特此鸣谢以下两位大佬(排名不分先后)

Lean的插件:Plus+

Shenmuecn的插件:SmartDNS

SmartDNS开启前

SmartDNS开启后

教程开始(适用于所有openwrt固件)

一、设置SmartDNS上游服务器

1)附上:GoogleDNS、OpenDNS,https协议类型,DNS服务器IP的网址

GoogleDNS:https://dns.google/dns-query

OpenDNS:https://doh.opendns.com/dns-query

2)TelecomDNS 这一条可以不用添加,这是我所在地的电信dns。(你也可以改成你的所在地运营商的DNS)

二、编辑刚刚添加的“上游服务器”的DNS,设置分组。(点 “修改” 设置 “服务器组”,一组 “海内” ,另一组 “外洋”)

三、第一组通例设置,参考下载图设置

第一组通例设置

四、第二组通例设置,参考下图设置

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Mybatis-plus使用find_in_set函数可以实现对字段中包含指定值的查询。在使用lambda表达式拼接SQL时,可以通过apply方法来使用find_in_set函数。具体的代码示例如下: ```java List<String> realIds = crmProgrammeService.getIdsByRealEstateNames(name); if (!CollectionUtils.isEmpty(realIds)){ if (realIds.size() == 1){ queryWrapper.like("real_estate_ids", realIds.get(0)); } else { for (int i = 0; i < realIds.size(); i++) { if (i == 0) { queryWrapper.apply(null != realIds.get(i), "(find_in_set({0},real_estate_ids)", realIds.get(i)); } else { if (i == realIds.size() - 1) { queryWrapper.or().apply(null != realIds.get(i), "find_in_set({0},real_estate_ids))", realIds.get(i)); } else { queryWrapper.or().apply(null != realIds.get(i), "find_in_set({0},real_estate_ids)", realIds.get(i)); } } } } } else { queryWrapper.isNull("real_estate_ids"); } ``` 以上代码中,通过apply方法传入find_in_set函数的参数,实现了对real_estate_ids字段进行查询。具体的SQL语句如下: ```sql SELECT * FROM `crm_programme` where find_in_set(1,real_estate_ids) or find_in_set(3,real_estate_ids); ``` 这条SQL语句会查询crm_programme表中real_estate_ids字段包含1或3的记录。\[1\]\[2\] #### 引用[.reference_title] - *1* *2* [记录 mybatis plus QuerWapper使用 FIND_IN_SET](https://blog.csdn.net/qq_34410726/article/details/126561485)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [mybatis-plus中使用FIND_IN_SET函数](https://blog.csdn.net/qq_41289165/article/details/116115674)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值