MySQL InnoDB 300+w数据 offset分页方案优化 实践 原理求求你不要再用offset和limit了方案SQL-- 分页取300w条数据后的100条select * from sme_policy_item_rpt_new where ENABLED = 1 limit 100 offset 3000000;select id from sme_policy_item_rpt_new where ENABLED = 1 limit 100 offset 3000000;-- 分页取300w条数据后的10条select * from sme_poli
Vue监听路由 从哪个页面跳转过来的 进行后续相关操作 <template> <div> <div class="loading-box"> <van-loading size="24px" color="#0094ff">加载中....</van-loading> </div> </div></template><script>export default { data() { return {
maven配置文件settings.xml <?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/s
Java开发中idea常用插件 必备:spring Assistant : springboot开发插件lombok : 省去get、set方法选装:free mybatis plugin: 自动生成mybatis相关操作MyBatisCodeHelperPro (Marketplace Edition):代码生成器Mybatis Smart Code Help:代码生成 编写提示swagger Tools:生成swagger注解RestfulToolkit : 接口测试工具GenerateJPA:根据Enti
常用adb命令 当前连接的设备adb devices当前activityadb shell dumpsys activity | findstr "mFocusedActivity"adb shell dumpsys activity | findstr "mResumedActivity"adb shell dumpsys activity activities
SpringBoot基于MyBatisPlus 抽取BaseController 这种方法有利有弊 酌情使用public class BaseCustApiController<S extends IService<T>, T> extends BaseParentCustApiController { protected Log log = LogFactory.getLog(this.getClass()); @Autowired @SuppressWarnings("SpringJavaInjectionPointsAutow.
SpringBoot + PagerHelper分页失效问题处理 @Configurationpublic class MybatisConfiguration { @Bean public Interceptor[] plugins() { return new Interceptor[]{new PageInterceptor()}; }}
Mysql锁表后的操作 -- 查询操作的事务select * from information_schema.innodb_trx-- kill 进程trx_mysql_thread_idkill 6585
SpringBoot spring-session-data-redis 共享session流程代码分析 前提需要维护一个没有服务端源码的旧项目服务端和它老项目配置同一个数据库的基础上重新起了个项目数据是互通了 可是后端登录状态始终无法同步老项目是使用spring-session-data-redis将session保存在redis中旧项目配置文件打算通过session共享和他打通登录状态共享设想一下 如果我们nginx配置在同一个域名下 是可以实现共享session的(同一个域名 浏览器默认使用同一个会话 同一个sessionId)实践访问老系统的cookie信息:http://127
SpringBoot分步式系统实现Session共享 redis spring session 集群和分步式系统共享session条件 分步式系统共享session分步式大行其道 共享session也成了大众化的需求 使用基于redis和spring-session也可以迅速实现对应的需求 但是如果两个毫无关联的系统之间 想要实现session共享 需要满足哪些条件两个无任何联系的项目想要实现session共享需要满足的条件1、两个springboot项目包名相同不同包名 同一个session 在redis里面也会创建两条session记录 无法实现共享session2、连接同一个redis将session数据集中管理 实
Dubbo项目注册中心从zookeeper迁移到nacos 2021年3月4日 前提条件dubbo版本:2.6.2注释zk相关依赖添加nacos依赖<nacos-starter.version>0.2.7</nacos-starter.version><nacos.version>1.2.1</nacos.version><dubbo.regist.nacos.version>2.6.7</dubbo.regist.nacos.version><dependency> <
SpringBoot yml properties引入外部配置文件 被引入文件 application-add.propertiesmybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl# 是否校验登录 0|不校验 1|校验cust_config.check.login=false引入配置文件 application-dev.propertiesspring.profiles.include=add...
Idea开发界面Services导航栏消失不见处理方法 微服务项目开启Services导航栏可以方便管理多个微服务 经常狠多人无法找到Services导航菜单 下面给出方法打开该导航菜单开启Services导航菜单配置Services
将json数据导出为excel java + 前端代码 效果图前端代码<script language="JavaScript" type="text/JavaScript"> function renderOptionList() { // 渲染最近操作记录列表 var table = layui.table; var excel = layui.excel; var laydate = layui.laydate; table.render({
charles抓包后 重写网络请求的返回值 重写respons 操作流程抓取接口请求save response修改保存的返回值文件map local 将修改后的返回结果映射回charles使用charles保存返回结果 并将-1修改为0将修改后的结果映射回来接口返回值改变 页面发生变化使用chrome的console自动点击抢礼品按钮setInterval(function () {$('div.wrapper.bx_animate').click(); },800);setInterval(function () {$('img.