根据package-lock文件批量下载某个包的所有依赖
实现脚本
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485const fs = require('fs');const https = require('https');const path = require('path');const folderPath = './dependency-tars';// 判断文件夹是否存在if (!fs.existsSync(folderPath)) { // 如果不存在则创建文件夹 fs.mkdirSync(folderPath);}// 读取package-lock.json文件fs.readFile('package-lock.json', ...
Hello World
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 in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1hexo new "My New Post" # 测试修改内容是否可以自动同步vercel
测试新增图片后git hook是否正常
More info: Writing
Run server
1hexo server
More info: Server
Generate static files
1hexo generate
More info: Generating
Deploy to remote sites
1hexo deploy
More info: Deployment
hexo中扩展的MarkDown高级语法
选项卡-tabs
markdown中本身不支持tabs,rmarkdown中似乎支持,而hexo中可以通过如下的语法生成tabs
12345678910111213{% tabs First unique name %}<!-- tab -->**This is Tab 1.**<!-- endtab --><!-- tab -->**This is Tab 2.**<!-- endtab --><!-- tab -->**This is Tab 3.**<!-- endtab -->{% endtabs %}
渲染后效果如下:
First unique name 1First unique name 2First unique name 3This is Tab 1.This is Tab 2.This is Tab 3.
如上内容参考自:http://ynotes.cc/2023/02/16/hexo-next-常用tag/#tabs-简介
这里可以找到更多的关于he ...
SpringBoot系列-02-helloworld示例(测试自动部署)
创建一个maven项目
在pom文件中引入SpringBoot父工程依赖
12345<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent>
在pom文件中添加所需依赖
本例是一个Web项目,所以只需要引入web相关的依赖,即
1234<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
编写SpringBoot的启动类
123 ...
SpringBoot系列-01-简介
Spring与SpringBoot
Spring可以做什么?
spring的生态覆盖了:
web开发
数据访问
安全控制
分布式
消息服务
移动开发
批处理
Spring5重大升级
响应式编程
内部源码设计
基于Java8的一些新特性,如:接口默认实现。重新设计源码架构
有了接口默认实现,原先的适配器模式就失去意义了。
为什么使用SpringBoot?
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
Spring Boot能快速创建出生产级别的Spring应用。
Spring Boot的优点
Create stand-alone Spring applications
创建独立Spring应用
Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
内嵌 ...

