https 39 whitelist protocol

java中使用RedisTemplate读取数据异常 Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '@class' at [Source: (byte[])"

解决方法: 直接储存对象,交给redisTemplate来序列化,或手动使用Jackson2JsonRedisSerializer序列化对象。 ......
type class java RedisTemplate property

如何在Android studio导入jdk9及以上版本中依赖包,如'rt.jar',' dt.jar'等

1、如何获取jdk9及以上版本中依赖包,如'rt.jar',' dt.jar'等 ​ 在jdk9及后续版本中,jdk开始使用模块化规则,实现更好的封装和定义良好的接口,近一步加强了java的自由度,开发者可以定制化SDK ​ 包括rt.jar在内的依赖均已移除,以模块化形式更高效的存诸在 JAVA_ ......
39 jar Android 版本 studio

@JvmDefault is only supported since JVM target 1.8. Recompile with '-jvm-target 1.8’

问题 Logcat 提示’@JvmDefault’ is only supported since JVM target 1.8. Recompile with '-jvm-target 1.8’ 解决 在gradle中插入以下代码 android { //..其他代码... kotlinOptio ......

Python3.10 报错解决"zipimport.ZipImportError: can't decompress data; zlib not available" "ModuleNotFoundError: No module named 'zlib'"

编译没问题,在安装python3.10出现如下错时 试试下面命令,安装zlib的所有依赖包(可能是少了) yum -y install zlib* 安装成功了 参考: python3安装遇到 zipimport.ZipImportError: can't decompress data; zlib ......

No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available

今天在重启springboot时候一直报如上的代码,但是也没有具体的报错信息。很是郁闷。 最后发现有两个:一个是使用@ComponentScan的问题,一个是@MapperScan的问题。@MapperScan 默认是当前目录,我的目录和我引用的dao的目录不同导致的。 2.@Autowire和@R ......

一行命令使用 python3 搭 https 服务

很多时候 python 搭个私有 http 服务会很方便,很常规的应用,比如传个文件啥的。有时候某些场景下要求必需是 https 服务。怎么搭呢。 原理部分 正常的搭建 https 服务过程如下: 1、 安装 openssl 2、生成证书密钥对 # 直接默认生成 openssl req -newke ......
一行 命令 python3 python https

'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 ......

oracle 等待事件'Log file sync'

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

cuda编程 转载https://zhuanlan.zhihu.com/p/592721411

4. 相关概念和术语 在CUDA编程模型中,两个主要的硬件设备分别为CPU和GPU,它们都有自己专用的内存区域。 I 主机、设备和异构并行编程 CPU连同它的计算机RAM被称为主机(Host)。CPU由于其结构特点非常适合运行串行程序。但CPU的问题是,如果其运行至一部分需要大规模并行运算的代码时, ......
592721411 zhuanlan https zhihu cuda

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

无法加载源 https://api.nuget.org/v3/index.json 的服务索引

.net 6之后,不会随项目生成packages文件夹,将项目拷贝到无联网的电脑上用VS打开时,会出现nuget还原失败的情况,只需要把原电脑中的用户文件夹下的.nuget文件夹拷贝过去,放到对应路径下即可 ......
索引 https nuget index json

解决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 方案

体验下 slint ui (https://slint-ui.com/)

先总结下结论:这个框架目前功能还不完善,但是想法真是挺好的,如果路线不错,将来还是有希望的。 slint-ui是Qt前员工搞出来的一个新的ui,用rust写的,目前支持使用rust/c++/javascipt开发。ui使用了一个新的语言,这个语言很像 QML,描述控件的功能都可以完成,但是复杂的ac ......
slint slint-ui https ui com

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

[Educational Codeforces Round 147 (Rated for Div. 2)](https://codeforc.es/contest/1821)题解A~D

A: 思路: 首字母如果是0,直接输出0。 如果首字母是?,提供九种方案,之后每一个?提供10种方案。 void solve(){ string s; cin>>s; if(s[0]=='0'){ cout<<"0"<<endl; return ; } int ans=1; for(int i=0; ......