39 access access-control-allow-origin xmlhttprequest

'tuple' object does not support item assignment

相对元组内的值进行修改,报错:‘tuple' object does not support item assignment. 搜了之后才发现:元组可读不可写,list可读可写。 详细参照: https://blog.csdn.net/qq_41368074/article/details/1057 ......
assignment support object tuple 39

No qualifying bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations

2023-04-24 18:50:39.372 WARN 26732 [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling ......

Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

原因是由于root用户没有SYSTEM_USER权限,把权限加入后即可解决: grant system_user on *.* to 'root'; ......

把nginx的access_log以json的格式输出

# 在`nginx.conf`中添加如下配置 log_format json escape=json '{"@timestamp":"$time_iso8601",' '"server_addr":"$server_addr",' '"remote_addr":"$remote_addr",' '" ......
access_log 格式 access nginx json

oracle 等待事件'Log file sync'

Troubleshooting: 'Log file sync' Waits (Doc ID 1376916.1) ......
事件 oracle 39 file sync

echarts 数据密集,如果设置sampling: 'average' 会导致提示框(tooltip)无法正常显示,但是不设置sampling属性,数据很多时又会很卡,该怎么解决

如果数据比较密集,设置sampling: 'average'确实可以加速绘图,但同时也可能导致提示框无法正常显示的问题。这个问题的原因是,sampling会对数据进行抽样,因此不会显示原始的数据点,而是将数据点以一定规律进行采样,取平均值或最大或其他值,因此提示框的内容可能不准确。 不过,有一个简单 ......
sampling 数据 属性 echarts average

Educational Codeforces Round 39 (Rated for Div. 2) -- D. Timetable (DP)

写得很折磨人,每次dp都写个一个多小时,写出来明明觉得不难 ^.^ 题目大意:可以进行K次操作,把删除1,进行k次操作后每行第一个 1 和最后一个 1 的位置 相减的绝对值加 1 得到的结果最小。 做法:每次肯定是要从左删或者从右边删,然后顺着这个思路,先把每行的进行小于等于k次操作时, 每行最小的 ......
Educational Codeforces Timetable Round Rated

TypeError: Cannot read property 'upgrade' of undefined

解决方案: 在你的.env.dev配置文件中配置VUE_APP_BASE_API并对target赋值 ......
TypeError undefined property upgrade Cannot

C# Mysql The given key '12599' was not present in the dictionary.

如果查询语句没有问题数据库连接字符串也没有问题,可能是Mysql.Data引用与当前安装的Mysql数据库版本不兼容的问题。 我本地安装的mysql版本是8.30,在VS里使用Nuget程序包下载的Mysql.Data引用是其他更低的版本,将程序里用的Mysql.Data也更新到8.30就好了。 版 ......
dictionary present Mysql 12599 given

Vue向服务端发送axios请求报错解决:AxiosError {message: 'Request failed with status code 403', ...}

Vue向服务端发送axios请求报错解决:AxiosError {message: 'Request failed with status code 403', ...} 登录界面点击提交向服务端发送用户名和密码,在Vue中用axios向服务端发送请求,一直显示403错误: 出现问题的前端请求代码如 ......
AxiosError Request message failed status

「解题报告」CF708E Student's Camp

感觉 这篇题解 的做法很强啊,贺一下。 连通:考虑将每一种情况对应一条路径。钦定这条路径为能往下则往下,不能往下就向左或向右走到第一个能往下的位置然后往下。 这样只考虑每一种路径,再对应的计算路径相应的情况的概率和。这个是容易计算的,而路径需要记录的状态少了一维,于是就可以 $O(nm)$ 的解决了 ......
Student 报告 708E Camp 708

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''',b_5='17',b_6='' wher

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right s ......

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

今天执行mysql操作的时候出现了错误:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'问题 1:首先检查是否安装了mysql-server了 su ......
mysqld 39 connect through server

解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题

找了很久这个问题 解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题 - 北桥苏 - 博客园 (cnblogs.com) 解决办法 改为 问题解决 没有找到为什么 好像高版本的router没有这个问题 我因为 ......
路由 TypeError undefined property 错误

Loading class `com.mysql.jdbc.Driver'. 问题

解决Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registere ......
Loading Driver 问题 class mysql

day39| 62+63

62. 不同路径 题目简述: 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为 “Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为 “Finish” )。 问总共有多少条不同的路径? 思路: 1. 到每个网格都有对应路径数 2. ......
day 39 62 63

sql语法错误[1093] You can't specify target table 'score' for update in FROM clause

不能在同一张表中将查询非结果集作为更新条件执行 将需要的结果集外层套一层自查询如 update a set a.num=a.num+1 where a.name in (select a.age from a where xx=xxx) ;报错 [1093] You can't specify ta ......
语法 39 错误 specify clause

错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist

yum update报错,原因是CentOS Linux 8在2022年12月31日来到生命周期终点(End of Life,EoL)。即CentOS Linux 8操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。所以原来的CentOS Linux 8的yum源也都失效 ......
mirrorlist appstream internal 错误 prepare

装了.Net 7.0后,工程框架用 net6 的 dotnet watch 出错临时解决方案 Could not load file or assembly 'System.Runtime,7.0.0.0

升级vs或者装了.Net 7.0后, 工程框架用 net6 的 dotnet watch 出错 ‘Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime ......
框架 assembly 解决方案 Runtime 方案

from collections import namedtuple, MappingImportError: cannot import name 'Mapping' from 'collections' (D:\python38\Lib\collections --init__.py)

from collections import namedtuple, MappingImportError: cannot import name 'Mapping' from 'collections' (D:\python38\Lib\collections --init__.py) 出现以上 ......

{ 4, 250, 7, 39, 34, 73, 7, 56, 19, 151, 159, 71 }

{4,244,238,41,25,243,238,13,27,71,3,71} { 4, 244, 238, 143, 126, 112, 156, 172, 149, 176, 181, 157, 177, 185, 163, 151, 177, 155, 125, 123, 124, 190, ......
250 151 159 19 39

js中的XMLHttpRequest、websocket使用

一、XMLHttpRequest 发送请求 创建XMLHttpRequest实例 let xhr = new XMLHttpRequest(); 初始化 xhr.open(method, URL, [async, user, password]) method:HTTP方法,通常'GET'或者'PO ......
XMLHttpRequest websocket

CentOS网卡无法启动返回'Failed to start LSB:Bring up/down networking.'

装了一台虚机,配置docker服务的时候发现忘了开CPU虚拟化,关机开启后再登录,发现网卡down了,重启网卡报错。 1. journalctl -ex #查看日志,发现返回错误'Failed to start LSB:Bring up/down networking.'; 2. vi /var/l ......
网卡 networking CentOS Failed Bring

git执行push操作时报错:remote: xxx: Incorrect username or password (access token)

问题: 最近用git push项目到gitee时报错,提示信息如下: remote: xxx: Incorrect username or password (access token) fatal: Authentication failed for 'https://gitee.com/xxx/ ......
Incorrect password username 时报 access

'props' is not defined.

这个错误表明在组件中,变量 props 没有被定义。通常情况下,我们需要在组件选项中指定 props,并传递它们给 setup() 函数: 'props' is not defined. export default defineComponent({ name: "message-out", pr ......
defined props 39 not is

vue3 路由跳转:Cannot read properties of undefined (reading 'push')

在vue2中我们通常会在全局的接口请求里面设置拦截器,如果登录失效或者说其他情况需要跳转到登录页面或者说其他页面的,我们就使用this.$router.push实现vue3中同样使用改方式: import { useRouter } from 'vue-router'; const router = ......
路由 properties undefined reading Cannot

XMLHttpRequest实现异步请求

XMLHttpRequest基本概念 XMLHttpRequest是一种用于在Web浏览器和服务器之间进行异步数据交换的技术。它可以在不重新加载页面的情况下向服务器发送HTTP请求,接收和处理来自服务器的响应,并更新网页的部分内容。XMLHttpRequest也被称为XHR,它是一种在Web开发中常 ......
XMLHttpRequest

关于项目组件打包时遇到 `Uncaught TypeError: Cannot read property 'toLowerCase' of undefined` 的情况

在全局注册组件时采用遍历组件池的方法时 每个组件都应该具备name属性 否则会出现 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined ......

Module not found: Error: Can't resolve 'axios' in 'D:\BaiduSyncdisk\vue-cli-project\dc_vue3\src\utils'

Module not found: Error: Can't resolve 'axios' in 'D:\BaiduSyncdisk\vue-cli-project\dc_vue3\src\utils' 因:没有安装axios插件 在运行项目的地方npm install --save axios ......
39 vue-cli-project BaiduSyncdisk vue resolve