adong搬砖

导航

2025年11月9日 #

IntelliJ IDEA 中为项目添加 Git 仓库的详细步骤:

摘要: 一、初始化本地 Git 仓库 打开项目后,点击顶部菜单栏 VCS → Create Git Repository。 在弹出的窗口中,选择项目的根目录(默认即可),点击 OK,此时项目会被初始化为本地 Git 仓库。 二、将项目文件添加到暂存区 在项目文件列表中,右键点击项目根目录,选择 Git → 阅读全文

posted @ 2025-11-09 04:55 adong搬砖 阅读(224) 评论(0) 推荐(0)

git操作

摘要: ## 本地初始化 git init ## 设置账号 git config --global user.name "Your Name" ##设置密码 git config --global user.password "xxxxxx" ##设置邮箱 git config --global user. 阅读全文

posted @ 2025-11-09 04:05 adong搬砖 阅读(3) 评论(0) 推荐(0)

2025年2月3日 #

springboot的pom.xml起步配置和mvn 起步操作

摘要: <?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-instance" xsi:sc 阅读全文

posted @ 2025-02-03 20:38 adong搬砖 阅读(61) 评论(0) 推荐(0)

2024年9月2日 #

flex+margin(列表布局)

摘要: .item { --n: 8; background-color: red; width: 50px; height: 50px; margin: 10px calc((100% - var(--n)*50px)/var(--n)/2); } #container { width: 600px; h 阅读全文

posted @ 2024-09-02 14:48 adong搬砖 阅读(17) 评论(0) 推荐(0)

2024年8月12日 #

nginx 反向代理

摘要: nginx.conf http { server { listen 80; server_name localhost; location ^~ /api { root html; index index.html; proxy_pass http://localhost:5000/api;#前面加 阅读全文

posted @ 2024-08-12 15:01 adong搬砖 阅读(14) 评论(0) 推荐(0)

2024年4月21日 #

v2 img lazy

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文

posted @ 2024-04-21 00:32 adong搬砖 阅读(19) 评论(0) 推荐(0)

cluster

摘要: //cluster模块子进程内置共享端口 const express = require('express') const cluster = require('cluster') if (cluster.isMaster) { //处理主进程逻辑 console.log(`主进程 ${proces 阅读全文

posted @ 2024-04-21 00:05 adong搬砖 阅读(139) 评论(0) 推荐(0)

2024年4月20日 #

cors

摘要: Access-Control-Allow-Origin 允许跨域访问 Access-Control-Allow-Headers 向浏览器发送预检请求,询问是否支持跨域的自定义 header 字段 Access-Control-Allow-Methods 询问是否支持跨域的请求方法 Access-Co 阅读全文

posted @ 2024-04-20 16:15 adong搬砖 阅读(16) 评论(0) 推荐(0)

2024年3月3日 #

主路由子路由视图配置(子app),并且重定向新路由

摘要: 重定向 阅读全文

posted @ 2024-03-03 22:25 adong搬砖 阅读(50) 评论(0) 推荐(0)

python 视图渲染方式

摘要: 1 第二种和第三种都需要改配置文件(需要重启服务) 2 3 阅读全文

posted @ 2024-03-03 22:10 adong搬砖 阅读(11) 评论(0) 推荐(0)