August 10, 2022
spring
autowired
Spring Autowired无法自动装载问题如下代码在使用了Component和Autowired注解后仍然不能自动装载, 具体代码如下
解决方法如下: 加上@SpringBootTest注解
12345678910111213141516171819202122232425262 ...
Read more
April 17, 2022
java
spring
problems
java Properties could not be found错误跟着spring tutorial学习的过程中,在学到上传文件 https://spring.io/guides/gs/uploading-files/ 的时候按照原文代码编译报错了,错误如下
1Parameter 0 ...
Read more
April 13, 2022
ascii
terminal
shell
asciinemaascii是一个终端录制程序,可以将自己的终端操作录制后分享给他人。
安装asciinema
1brew install asciinema
开始屏幕录制
1asciinema rec
操作完毕后可以按提示<ctrl-d>或者exit退出录制。退出后根据提示 ...
Read more
April 11, 2022
git
git worktree 使用场景如果我们正在feature开发一个新功能,这时候老板说线上有个bug,那么通俗的做法是用git stash保存当前代码,然后从mater拉出一个hotfix分支,修改提交后再切换到feature分支,用git stash pop恢复之前的代码。
大部分时候可 ...
Read more
October 3, 2021
java
spring
Spring网站下载压缩包进入https://start.spring.io/网站,选择相关的配置, 然后下载就可以直接使用了。注意如果需要web开发,需要选择web插件,否则不会包含相应类库。
如图所示
用IDEA打开解压缩后的文件,即可自动下载相关类库。
可在application.p ...
Read more
July 27, 2021
java
JDK
maven
1. 下载JDK并配置环境变量去oracle官网 https://www.oracle.com/cn/java/technologies/javase-downloads.html下载JDK, 选择 Java SE 16, 然后选择对应的平台来下载。
这里以macOS二进制为例,安装jdk后 ...
Read more
July 27, 2021
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer ...
Read more