linux运维经典面试题总结
摘要:https://blog.csdn.net/weixin_45548465/article/details/104986399
阅读全文
Windows下安装和配置Kibana
摘要:https://blog.51cto.com/qubernet/5160888
阅读全文
通过rabbitMQ发送\Mysql微服务调用链路数据启动zipkin命令
摘要:java -jar zipkin.jar --zipkin.collector.rabbitmq.addressed=localhost java -jar zipkin.jar --zipkin.torage.type=mysql --zipkin.torage.mysql.host=localh
阅读全文
解决:hystrix.stream访问出现404问题
摘要:原因:springboot版本问题 解决:在启动类增加下面代码,然后重新启动项目 package com.forezp; import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet; impor
阅读全文
解决:idea不同端口号同时多次启动同一个项目——模拟集群
摘要:-Dserver.port= https://blog.csdn.net/suixinfeixiangfei/article/details/124401801
阅读全文
mybatis-plus自定义代码模板
摘要:http://www.manongjc.com/article/47597.html
阅读全文
解决:freemarker/template/Configuration
摘要:增加下面这个依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> <version>2.4.4</version> </
阅读全文
vuex中的this.$store.commit
摘要:https://blog.csdn.net/jingtian678/article/details/81481075
阅读全文
解决:Idea设置包名的层级显示
摘要:https://blog.csdn.net/qq_37080185/article/details/121785670 将Flatten packages以及Hide Empty Middle Packages的勾给去掉
阅读全文
解决:Cannot read properties of undefined (reading 'init')
摘要:原因:直接像引入其他包一样引入了echarts 加 * 导入就可以了 import * as echarts from "echarts";
阅读全文
解决:TypeError: Cannot read properties of undefined (reading 'service')
摘要:vue 3.x 版本加载转圈圈实例有变更,按下面导入 import { ElLoading} from 'element-plus' this.loadingInstance = ElLoading.service({ target: '.main', text: '玩命加载中', backgrou
阅读全文
解决:vue/no-deprecated-v-bind-sync
摘要:如果在Vue2中是使用.sync这个语法糖实现,但是如果在Vue3里继续使用.sync的语法糖,eslint就会提示该语法糖已经被废弃了的错误,vue/no-deprecated-v-bind-sync 使用v-model进行父子组件的值双向绑定 https://juejin.cn/post/702
阅读全文
解决:el-pagination jumper 英文问题
摘要:原因:使用element-puls 的分页组件时,显示的是英文。 这是因为Element Plus components 默认使用英文。 解决: 在主页面组件修改如下: <template> <div class="main"> <el-config-provider :locale="locale
阅读全文
解决:Filters are deprecated.eslint-plugin-vue
摘要:原因:从vue3.0开始,过滤器就被移除了。 解决:使用方法调用或计算属性来替换它们。 <el-table-column prop="bookType" label="图书类型" width="100"> <template v-slot="scope"> <span>{{bookTypeFilte
阅读全文
vue 项目查看非登录页面权限控制
摘要:import router from './router/index' import {getUserInfo} from './api/login' router.beforeEach((to,from,next)=>{ //1.到本地获取token const token=localStorag
阅读全文
解决:`slot` attributes are deprecated.eslint-plugin-vue
摘要:用vue3.0做项目是发现:`slot`属性已弃用 但vue 3.0 增加了v-slot的指令,在 <template v-slot:dropdown>就可以了 <el-dropdown @command="handleCommand"> <span class="el-dropdown-link"
阅读全文
解决:easymock 打不开
摘要:用fastmock替换,网址:https://www.fastmock.site/#/ 注册登录就可以用了
阅读全文
解决:Uncaught TypeError: Cannot read properties of undefined (reading 'validate')
摘要:Vue的版本不同,写法不太一样 问题:用validate进行判定,结果没有生效 解决:el-form中没写ref=“loginForm” 加上,不用在ref前加:号 <template> <div id="login-container"> <el-form :rules="rules" ref="
阅读全文
解决:Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
摘要:增加对应version标签就可以了 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.
阅读全文
解决:Cannot resolve org.springframework.cloud:spring-cloud-starter-zipkin:unknown
摘要:增加下面信息: <properties> <java.version>1.8</java.version> <spring-cloud.version>Finchley.RELEASE</spring-cloud.version> </properties> <dependencyManagemen
阅读全文
mqtt模式--Work 模式--公平分发
摘要:rabbitmq 使用带有 perfetchCount = 1 设置的 basicQos 方法。当消费者接受处理并确认前一条消息前,不向此消费者发送新消息,会分配给其他空闲的消费者。 package com.tszr.work; import com.rabbitmq.client.Channel;
阅读全文
mqtt模式--Work 模式--轮询分发
摘要:当有多个消费者时,如何均衡消息者消费消息的多少,主要有两种模式: 轮询模式分发:按顺序轮询分发,每个消费者获得相同数量的消息 公平分发:根据消费者消费能力公平分发,处理快的处理的多,处理慢的处理的少,按劳分配 轮询分发 在这种模式下,rabbitmq 采用轮询的方式将任务分配给多个消费者,但可能出现
阅读全文
mqtt模式--Topic 模式
摘要:Topic 模式是生产者通过交换机将消息存储到队列后,交换机根据绑定队列的 routing key 的值进行通配符匹配,如果匹配通过,消息将被存储到该队列,如果 routing key 的值匹配到了多个队列,消息将会被发送到多个队列;如果一个队列也没匹配上,该消息将丢失。 routing_key 必
阅读全文