limited being rate 429

Field userClient in com.demo.order.service.OrderService required a bean of type'com.demo.feign.clients.UserClient' that could not be found.

在SpringCloud项目中使用Feign进行远程调用遇到的错误。原因是因为UserClient在com.demo.feign.clients包下面,而order-service的@EnableFeignClientd注解却在com.demo.order包下面,这两个不在同一个包下,无法扫描到Us ......
demo OrderService userClient UserClient com

已解决If this call came from a _pb2.py file, your generated code is out of date and must be regenerated

已解决TypeError: Descriptors cannot not be created directly.If this call came from a _pb2.py file, your generated code is out of date and must be regener ......
regenerated generated this call came

mysql update语法 竟然不支持limit区间限制

首先查询可以这样写,没毛病的 SELECT * from a LIMIT 1000,2000 1.然后看一个不是区间的limit,更新满足条件的前1000条,没问题 update a set a.imp_date = 4 where a.is_sync = 0 limit 1000 2.这样写是错误 ......
区间 语法 update mysql limit

Educational Codeforces Round 148 (Rated for Div. 2) A-D2

Educational Codeforces Round 148 (Rated for Div. 2) A. New Palindrome map<int,int>mp; void solve(){ string s; mp.clear(); cin>>s; for(int i=0;i<s.size ......
Educational Codeforces Round Rated 148

python 报错:TypeError: only integer scalar arrays can be converted to a scalar index

def convolution(initial_img, kernal): img = np.zeros((initial_img.shape[0], initial_img.shape[1])).astype(np.uint8) for x in range(1, initial_img.shap ......
scalar TypeError converted integer python

ABC262Ex Max Limited Sequence 题解

题意: 给定 $m$ 个限制 $(l_i,r_i,p_i)$ 及 $n,k$,求满足以下条件的长度为 $n$ 的不同序列 $a=(a_1,a_2,\cdots,a_n)$ 的数目。 $\forall i \in[1,n],0\leq a_i\leq k$ $\forall i \in[1,m],\m ......
题解 Sequence Limited ABC 262

启动flink显示ERROR: JAVA_HOME is not set and could not be found.

问题: JAVA_HOME存在,但启动flink时出现ERROR: JAVA_HOME is not set and could not be found. 原因: 环境变量加载顺序不对 # /etc/profile.d/hadoop.sh # ... export HADOOP_CLASSPATH ......
JAVA_HOME not flink ERROR could

使用 Ef core 时 报错Data is Null. This method or property cannot be called on Null values.”

1.问题 在使用EF core做查询操作的时候报错 "Data is Null. This method or property cannot be called on Null values.”" 2.解决 这是数据库中的某个属性为空导致,即使这个属性srting类型,也需要将字段标记为可空的 ......
Null property cannot called method

解决git错误: error: The following untracked working tree files would be overwritten by merge

在我本地上进行git pull的时候,出现这个错误: error: The following untracked working tree files would be overwritten by merge: config/config.php 这是因为,本地上有一个文件,没有被git管理,但 ......

java.io.FileNotFoundException: class path resource [bean.xml] cannot be opened because it does not exist

出现这个报错 Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path res ......

Mixed Content: xxx This request has been blocked; the content must be served over HTTPS

1.情景展示 这是教师资格证,准考证的下载界面。 当我们去点击“下载准考证”的时候,你将发现点击该按钮并没有反应。 按F12,打开开发者工具。 该网站,会自动进入断点调试模式,目的是为了:禁止前端开发者查看网页代码之类的吧。 我们要想看看,为什么无法下载准考证,就不能够被它拦住。 解决办法: 第一步 ......
Content request blocked content served

安装SQL Server累积版本更新包,提示“Not Clustered or the Cluster service is up and online”和 There are no SQL Server Instances or shared features that can be updated on this computer

1. Not Clustered or the Cluster service is up and online 起因是服务器SQL Server之前有开启SQL Server AlwaysOn High availability feature and installed Failover Clu ......
Server SQL Clustered Instances features

TypeError: 'numpy.float64' object cannot be interpreted as an integer

报错内容: Traceback (most recent call last): File "C:\Users\xuan\.conda\envs\pytorch1-6\lib\site-packages\scipy\sparse\_sputils.py", line 225, in isintlik ......
interpreted TypeError integer cannot object

mysql8.0 使用navicat报caching_sha2_password' cannot be loaded解决方法

安装 8.0版本的mysql后,使用navicat连接时,报caching_sha2_password' cannot be loaded的异常。 原因为:8.0版本的mysq用户密码加密方式为caching_sha2_password,navicat暂不支持,需要修改下mysql的加密方式。 解决 ......
caching_sha password caching navicat 方法

WCF Error : Manual addressing is enabled on this factory, so all messages sent must be pre-addressed

WCF Error : Manual addressing is enabled on this factory, so all messages sent must be pre-addressed 回答2 I added a service reference as usual and got ......

npm命令报错:error Unexpected token '.'; error A complete log of this run can be found in:

如果你的npm报错是这样的 error Unexpected token '.' error A complete log of this run can be found in: 并且你你尝试过了网上各种方法不得行。那么会不会是管控版本vnm的问题呢? 弄了一早上不得行;最后尝试了下nvm版本。 ......
error Unexpected complete 命令 found

Educational Codeforces Round 147 (Rated for Div. 2) (贪心)

###原题链接:https://codeforces.com/contest/1821/problem/D * 题意:从1开始走,走的给定区间的值要k次。且shift按了要松开,代表走了一个区间除了往右的次数,还要多两次按shift的次数, 求最小次数。 * 思路: 1. 先把不可能的情况列出来,就 ......
Educational Codeforces Round Rated 147

Method expression can be null or undefined

idea编写vue项目,老提示Method expression can be null or undefined 更改idea的inspection设置 去掉Type Mismatch的校验,问题解决 ......
expression undefined Method null can

ABB控制模块PPC907BE 3BHE024577R0101

W;① ⑧ 0 ③ 0 ① ⑦ 7 7 ⑤ 9 ABB控制模块PPC907BE 3BHE024577R0101 SYN5202-0277 PFCA401SF 3BSE024387R4 SYN5202A LWN2660-6E 3BHL000986P7002 UFC760BE143 3BHE004573 ......
模块 024577R 024577 R0101 3BHE

Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2)

好久没发博客了,发一篇。 A 求出每个 $0$ 与往前 / 往后最近的 $1$ 的距离即可。 时间复杂度 $\mathcal{O}(n)$。 B $(x, y) \to (x + y, y) \to (x + y, -x) \to (y, -x) \to (y - x, -x) \to (y - x ......
Div everyone Deltix Spring Round

idea创建SpringBoot项目报错For artifact {mysql:mysql-connector-java:null:jar}: The version cannot be em

For artifact {mysql:mysql-connector-java:null:jar}: The version cannot be empty. 报错如图: pom.xml文件如图: 添加版本号: 就好了 ......

Educational Codeforces Round 147 (Rated for Div. 2) A~E 题解

A Link。 模拟,代码。 B Link。 模拟,代码。 C Link。 我们设 $c$ 为最后相同的字符。 性质:我们一定不会删除字符 $c$。 因此以 $c$ 为最后字符的操作次数就是不包含字符 $c$ 的极大段的最小操作次数的最大值。 对于一个长度为 $l(l\ge 1)$ 的段,它的最小操 ......
题解 Educational Codeforces Round Rated

K8s报错:[preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.

一、报错信息 [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.[preflight] Running pre-flight ch ......

问题解决:Component name "xxx" should always be multi-word vue/multi-word-component-names

如题,原因是单个单词命名时语法检测无法通过,可以在导出组件时通过name属性给组件名加一个后缀,比如Component。 <script> export default { // 当组件名为一个单词时,语法检查是无法通过的,可以设置name的值为2个单词来规避检查。 name: 'HomeCompo ......

Educational Codeforces Round 145 (Rated for Div. 2)

Preface 补题 A~D都能秒出,E没看出性质被薄纱了,F感觉是个丁真题随便讨论下就过了 后面看了下F的标算是个倍增,感觉Tutorial对性质挖掘的还不够的说 A. Garland SB题,设出现次数最多的颜色个数为$cm$,若$cm\le 2$则答案为$4$;若$cm=3$则答案为$6$,若 ......
Educational Codeforces Round Rated 145

Python MatplotlibDeprecationWarning Matplotlib 3.6 and will be removed two minor releases later

在Pycharm中使用Matplotlib中的pyplot时,运行代码报错: MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was ......

Educational Codeforces Round 147 (Rated for Div. 2)

Preface 补题 这周比赛挺少,不过后面可能就很少有时间补以前的比赛了的说 现在除了要做学校的集训专题外,还要刷一下蓝桥杯国赛的题,可以说是很忙碌了 而且由于JAVA的期末考试要来了,为了熟悉下语法以后补题的时候前面的题目可能会用JAVA来写(其实我写的JAVA看起来和C++真没啥区别) A. ......
Educational Codeforces Round Rated 147

HJ68 成绩排序 Sorts are guaranteed to be stable. 默认录入顺序不变

1 ''' 2 Sorts are guaranteed to be stable. 3 That means that when multiple records have the same key, 4 their original order is preserved. 5 所以,按相同分数排 ......
guaranteed 顺序 成绩 stable Sorts

error: Your local changes to the following files would be overwritten by merge 解决方案

拉取代码出现 error: Your local changes to the following files would be overwritten by merge 解决方案 你团队其他成员修改了某文件并已提交入库。 你在pull之前修改了本地该文件,等你修改完代码再pull时,这时会报错如下 ......