摘要: 如果使用UpdateWrapper进行更新数据,默认的机制是将wrapper中设置的字段对应的值进行修改,如果值为null,则不会进行修改; 如果我们需要将指定的字段设置为null,需要在wrapper通过set()方法进行设置。 第一种情况:通过updateWrapper更新数据(不存在将信息保存 阅读全文
posted @ 2023-01-07 19:07 just1t 阅读(15247) 评论(2) 推荐(1) 编辑
摘要: 如果出现该错误,很大可能是没有将依赖进行安装,也有可能是安装之后没有进行导入。 解决方式: 第一步:安装依赖 npm install --save pubsub-js 第二步:将依赖进行导入到renren的main.js中,在使用,具体如下图片 阅读全文
posted @ 2023-01-04 15:31 just1t 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 出现这个问题大多使用的springboot都是在2.6.x以上,springboot在2.6.x就将依赖循环禁用了,解决方式有以下几种: 解决方式: 1、第一种解决方式: 可以优化自己程序的逻辑,优化bean的依赖关系,只要不形成一个环状就不会出该问题了 2、第二种解决方式: 可以使用@Lazy注解 阅读全文
posted @ 2023-01-01 15:50 just1t 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: 场景: 在bootstrap.properties中编写nacos的配置,读取在nacos中定义的数据集连接oss springboot版本为2.6.8 结果就出现了以上错误 原因: 通过查找资料后发现,在springboot2.4之后,就不会默认在加载bootstrap.properties文件 阅读全文
posted @ 2022-12-26 17:21 just1t 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 错误信息: When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" 阅读全文
posted @ 2022-12-24 15:07 just1t 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 出现错误,如下图: 解决办法: 检查自己的yaml文件: server: port: 88 spring: application: name: applicationName cloud: nacos: discovery: server-addr: 127.0.0.1:8848 gateway: 阅读全文
posted @ 2022-12-24 13:59 just1t 阅读(696) 评论(1) 推荐(1) 编辑
摘要: ##1、首先,将依赖进行引入 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> </dependency> ##2、 阅读全文
posted @ 2022-12-22 15:58 just1t 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 先将镜像进行拉取 docker pull nacos/nacos-server 运行镜像 docker run --name nacos -e MODE=standalone -p 8848:8848 -d nacos/nacos-server 在这样执行之后,nacos是不会自启动的,如果需要自启 阅读全文
posted @ 2022-12-22 15:11 just1t 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 先将redis.conf文件进行创建,因为如果不先创建,在redis启动的时候,/etc/redis/中本没有文件,就会将redis.conf创建为一个文件夹 mkdir -p /mydata/redis/conf touch /mydata/redis/conf/redis.conf 执行以下命令 阅读全文
posted @ 2022-12-18 16:06 just1t 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 将mysql的配置文件从 [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] init_connect='SET collation_connection = utf8_unico 阅读全文
posted @ 2022-12-18 15:40 just1t 阅读(115) 评论(0) 推荐(0) 编辑