草庐IT

seata can not get cluster name in registry config ‘service.vgroupMapping.XXX‘

在学习seata的时候,很突然的就遇到这个问题。在seata官网解释说是事务分组和集群对应的关系,需要在client端配置。我使用nacos来做配置中心在红框标注的内容里,第三行的无序列表就说明了会用service.vgroupMapping.事务分组名去配置中心找TC的集群名称。所以只需要在nacos的配置中心中加上Data-Id为service.vgroupMapping.事务分组名,值设置为default有一个深坑,别看文档上写在applicaiton.properties上配置了service.vgroupMapping,其实是无效的。只有config.type=file才有效贴上上面

解决前端报错 Error: Cannot find module ‘xxx‘(包含 uniapp)

在npminstall安装好依赖后,执行打包命令时可能报错:1、Error:Cannotfindmodule'@vue/babel-preset-app'2、Error:Cannotfindmodule'cache-loader'这里只列了两种,只是因为换了3个node环境出现的报错。网上的解决方案大多是:1、删除node_modules与package-lock.json,重新$npminstall一下,这是一种方案,但是可能不行,因为可能是node版本问题。2、直接手动安装一下找不到的模块$npmicache-loader,但是可能依然不行,这个可能是内部依赖的版本对不上,也会报内部错误。

vue3报错 Unexpected mutation of “xxx“ prop.(eslintvue/no-mutating-props)

vue3报错Unexpectedmutationof“xxx“prop.(eslintvue/no-mutating-props)eslint校验报这个错,其实是Vue的单向数据流的概念,因为识别到子组件中修改了props值。我这里踩到这个坑是这么操作的,我在父组件中给子组件传了个值,然后再子组件中v-modle这个值,于是就给我报了这个错!复现场景如下:父组件中enter-schoolref="enterSchoolRef":student-info="selectRows"/>子组件中template>el-formref="formRef"class="enterForm"inline:

‘xxx‘ “将对您的电脑造成伤害。 您应该将它移到废纸篓。”mac一直弹窗并关不掉的解决方式

10.15.1之后的系统:在终端输入:csrutilstatus如果返回值为:SystemIntegrityProtectionstatus:enabled说明MAC系统SIP保护开启了,关闭SIP保护即可重新启动MAC电脑,重启的时候按command+r,进入恢复环境,在恢复环境打开终端输入csrutildisable重新启动系统后,再次输入csrutilstatus,应该显示为disable此时就不会报错了

c# - 如何避免 SerializationException : Type is not resolved for member XXX when testing a component that uses the LogicalCallContext

当EF尝试从App.config加载信息时,我最近开始在我的单元测试(NUnit)代码中遇到以下异常:System.Runtime.Serialization.SerializationException:Typeisnotresolvedformember[mytypename],[myassemblyname]NUnitGUI运行器和R#的VS集成运行器都会发生这种情况。这是重现问题的快速单元测试:[Test]publicvoidTest(){//adding//ConfigurationManager.OpenExeConfiguration(ConfigurationUserL

c# - 如何避免 SerializationException : Type is not resolved for member XXX when testing a component that uses the LogicalCallContext

当EF尝试从App.config加载信息时,我最近开始在我的单元测试(NUnit)代码中遇到以下异常:System.Runtime.Serialization.SerializationException:Typeisnotresolvedformember[mytypename],[myassemblyname]NUnitGUI运行器和R#的VS集成运行器都会发生这种情况。这是重现问题的快速单元测试:[Test]publicvoidTest(){//adding//ConfigurationManager.OpenExeConfiguration(ConfigurationUserL

解决 Application xxx failed 2 times due to AM Container for xxx exited with exitCode: 13 问题

解决SparkApplicationapplication_1679387136817_0009failed2timesduetoAMContainerforappattempt_1679387136817_0009_000002exitedwithexitCode:13问题问题1.sparkhadoop启动后输入命令出现错误2.查看hadoop-root-namenode-master.log日志出现Notenoughreplicaswaschosen.Reason:{NO_REQUIRED_STORAGE_TYPE=1}解决方法1.停止spark2.修改master节点的spark下的sp

解决 Application xxx failed 2 times due to AM Container for xxx exited with exitCode: 13 问题

解决SparkApplicationapplication_1679387136817_0009failed2timesduetoAMContainerforappattempt_1679387136817_0009_000002exitedwithexitCode:13问题问题1.sparkhadoop启动后输入命令出现错误2.查看hadoop-root-namenode-master.log日志出现Notenoughreplicaswaschosen.Reason:{NO_REQUIRED_STORAGE_TYPE=1}解决方法1.停止spark2.修改master节点的spark下的sp

Vue3 报错:WebSocket connection to ‘ws://X.XXX.X.XX:8080/ws‘ failed:

问题:页面没有问题,但是打开控制台就出现如下图所示的一连串的报错信息问题解决: const{defineConfig}=require('@vue/cli-service')module.exports=defineConfig({transpileDependencies:true,lintOnSave:false,devServer:{host:'0.0.0.0',port:8080,client:{webSocketURL:'ws://0.0.0.0:8080/ws',},headers:{'Access-Control-Allow-Origin':'*',},}}) 修改完后重新运行一

Python Selenium 元素定位错误Message: no such element: Unable to locate element: {“method“:xxx}

PythonSelenium元素定位错误Message:nosuchelement:Unabletolocateelement:{“method“:xxx}报错信息selenium.common.exceptions.NoSuchElementException:Message:nosuchelement:Unabletolocateelement:{"method":"xpath","selector":"绝对路径/相对路径"}1、元素定位错误第一种情况就是你的元素定位表达式错误,根本就没有你表达式定位的这个元素,这时候就需要检查一下自己的表达式有没有写错了。当然这种情况出现的可能性不大,所