Be

django.db.utils.integrityerror: (1048, "Column 'phone' cannot be null")

1 背景: 模型表中字段为: phone = models.CharField(default='', max_length=64, verbose_name=u'电话', blank=True) 2 分析: 在保存模型实例时, ‘phone’被设置为空值. 但是该字段在数据库中被设置为(NOT N ......
quot integrityerror django Column cannot

java.lang.ClassCastException: com.alibaba.fastjson2.JSONArray cannot be cast to java.lang.String的解决

是这样的,今天跟着写springboot项目的时候,前端登录的时候报403错误。检查了半天,是后端的问题 报错代码: 第二句 报错提示如下 说是JSONArray不能转String,但我这也不是JSONArry转String而是Object转String啊。 网上搜了半天,用了好多种方法也没什么用 ......

报错问题谷粒商城 Oss endpoint can‘t be empty

报错信息:Caused by: java.lang.IllegalArgumentException: Oss endpoint can’t be empty. 网上查了一下说有两种可能 第一种是springboot和springcloud版本不对应 第二种错误说的是oss.yml格式错误 建议优先 ......
谷粒 endpoint 商城 问题 empty

论文阅读 | Learn from Others and Be Yourself in Heterogeneous Federated Learning

**在异构联邦学习中博采众长做自己** 代码:https://paperswithcode.com/paper/learn-from-others-and-be-yourself-in **摘要** 联邦学习中有异质性问题和灾难性遗忘。首先,由于非I.I.D(相同独立分布)数据和异构体系结构,模型在 ......

Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed

python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"Microsoft Visual C++ Redistributable is not install ......
TensorFlow installed requires Could msvcp

expected one result (or null) to be returned by selectone(), but found: 5

以下是我的 mapper 文件的内容,是一个一对多查询。但是查询结果的 Book 映射不是一个,并且不能映射正确。 ```xml ``` 我开启了 resultMap 自动映射,所以 collection 和 resultMap 第一层都没有任何子标签。但问题就出在这里,就是因为我的主表,即 Boo ......
selectone expected returned result found

com.gitHub.pageHelper.PageHelper cannot be cast to org.apache.ibatis.pluin.Interceptor

可能是因为版本冲突问题PageHelper5之前与之后是配置文件有发生变化,下面这个是使用pageHelper5.1.18jar包导入。使用PageHelper分页插件(使用spring+分页插件的方式)结果忘记把mybatis的分页插件和依赖去除,结果导致排错很久(怀疑是版本冲突的问题)附上正确用 ......

动态路由 出现 for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.

for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to sup ......
import this 路由 vite-ignore supported

webpack报错处理:The extension in the request is mandatory for it to be fully specified.

完整的报错提示如下: BREAKING CHANGE: The request './module2' failed to resolve only because it was resolved as fully specified(probably because the origin is s ......

thoughts-on-My-Memories-of-Old-Beijing

读《城南旧事》 Created: 2023-05-25T18:30+08:00 Categories: ReadingNotes 最近在看《Happier》、《毛毛》,感觉不同书里一些词句和记忆中的文字相通了。 最早接触林海音的文章,可能是来自《童年·冬阳·骆驼队》: > 老师教给我,要学骆驼,沉得 ......

Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT

Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT ......

git拉取代码出现“remote: The project you were looking for could not be found.”错误分析

如果输入的远程地址正确,那么极大可能是用户未登录或多个用户登录无法正确获取你想要的用户,如下图所示, 由于之前有同事在我电脑登录git账号,所以在windows凭据中保存了2个git账号,而默认使用的第一个账号的远程库中不存在我想要的目标仓库数据,就出现了“remote: The project y ......
错误 project looking 代码 remote

注解中动态获取nacos值【attribute value must be constant】

nacos中配置环境参数 env: es: dev 注解中添加参数信息 @Data @IndexName(value = "#{@envEs}") public class EsInfo{ private Long id; } 添加配置文件获取配置数据 @Component public class ......
注解 attribute constant 动态 nacos

Authentication plugin ‘caching_sha2_password‘ cannot be loaded

用navicate登录mysql8.0时报错如下: Authentication plugin ‘caching_sha2_password‘ cannot be loade 原因是mysql8 之前的版本中加密规则是mysql_native_password,而mysql8之后,加密规则是cach ......

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

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

启动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

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

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文件如图: 添加版本号: 就好了 ......