摘要: 1. File -> Project Structure 阅读全文
posted @ 2025-08-04 16:28 狗狗听话 阅读(6) 评论(0) 推荐(0)
摘要: 1.map方法遍历数组 这里说一下为什么要加上Array.isArray判断,初次使用react的时候可能会有这样的问题,数据请求已经返回来了,也打印看了确实有数据。 但在渲染的时候还是会报错,比如下图。 原因是第一次渲染的时候,请求数据有可能还没有返回,这时候使用map遍历,因为还没有数据所以是可 阅读全文
posted @ 2025-07-24 11:24 狗狗听话 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-07-11 11:19 狗狗听话 阅读(4) 评论(0) 推荐(0)
摘要: 1.Pom.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2025-07-03 17:46 狗狗听话 阅读(10) 评论(0) 推荐(0)
摘要: 在Springboot开发的过程中,我们有时候需要在项目启动的时候提前加载或者执行一些类。 https://www.671bc1.com/Enter/home.html一共使用过三种方法: 1、使用@PostConstruct注解; @Componentpublic class MyPostCons 阅读全文
posted @ 2025-04-04 11:50 狗狗听话 阅读(649) 评论(0) 推荐(0)
摘要: 1.chromedirver驱动下载:https://link.zhihu.com/?target=https%3A//storage.googleapis.com/chrome-for-testing-public/137.0.7151.104/mac-arm64/chromedriver-mac 阅读全文
posted @ 2025-03-31 13:57 狗狗听话 阅读(42) 评论(0) 推荐(0)
摘要: 1.下载Redis: https://redis.io/downloads/ ,进入网站拉到最低下就能看到可以下载的版本。 2.下载后解压缩,进入文件输入命令:sudo make test 执行完后出下面的图,就可以证明安装环境没有问题: 3.然后执行命令:sudo make install, 下图 阅读全文
posted @ 2025-03-29 12:48 狗狗听话 阅读(706) 评论(0) 推荐(0)
摘要: 当我们安装完postgresql,打开自带的pgAdmin时会报如下错误,这时候我需要去单独下载一个版本pgAdmin重新安装 下载地址:https://www.pgadmin.org/download/pgadmin-4-macos/ 阅读全文
posted @ 2025-03-18 07:45 狗狗听话 阅读(25) 评论(0) 推荐(0)
摘要: 1.pom.xml 不需要添加任务多余的包,只需要基本SpringBoot包即可 2. Application.class文件需要添加任务定时开启的注解:@EnableScheduling 3.编写自己的定时器任务类 @Servicepublic class ScheduleService { @S 阅读全文
posted @ 2025-03-11 11:19 狗狗听话 阅读(34) 评论(0) 推荐(0)
摘要: 冲突原理:由于远程仓库和本地的commit有冲突,Git无法自动解决冲突时,会切换到一个匿名分支,然后使用git branch -a命令会发现变为如下图的样子: 手动解决完冲突后,直接执行git add -A(很重要),然后执行git rebase --continue, 如果没有任何需要解决的冲突 阅读全文
posted @ 2025-02-12 17:15 狗狗听话 阅读(184) 评论(0) 推荐(0)