- 博客(23)
- 资源 (1)
- 收藏
- 关注
原创 webpack配置
根目录创建 webpack.config.jsconst path = require('path');const HtmlWebPackPlugin = require('html-webpack-plugin');module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'main.js' },
2021-10-11 15:02:08 138
原创 linux-安装redis
1. 下载安装wget http://download.redis.io/releases/redis-6.0.6.tar.gztar xzf redis-6.0.6.tar.gz2. 指定目录安装makemake PREFIX=/opt/redis install 卸载apt-get remove redisapt-get purge --auto-remove redis-server3. 注册服务复制安装包 /opt/ddd/redis-6.0.6/utils/redis_i
2021-09-05 19:14:27 97
原创 linux服务器配置
安装jdk# 解压tar -zxvf jdk-8u181-linux-x64.tar.gz -C /usr/lib/java# 配置环境变量vim ~/.bashrcexport JAVA_HOME=/usr/lib/java/jdk1.8export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH .
2021-09-05 10:54:20 137
原创 springboot_热部署
1. POM添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope></dependency>2. ap
2020-10-05 22:59:05 554
转载 axios封装
说明以下内容摘自 https://www.jianshu.com/p/86122178002a封装请求import axios from 'axios'import { Message, Loading } from 'element-ui'const ConfigBaseURL = 'https://localhost:3000/' //默认路径,这里也可以使用env来判断环境let loadingInstance = null //这里是loading//使用create方法创建axio
2020-08-22 15:59:01 98
原创 pm2 - node进程守护
安装npm install pm2 -g操作pm2 lspm2 stop allpm2 restart allpm2 reload 0pm2 restart 0pm2 delete allpm2 delete 0日志pm2 logs --lines 10pm2 logs --rawpm2 flushpm2 reloadLogs监控pm2 monit
2020-08-22 14:06:18 178
原创 easy-mock
{ "port": 7300, "host": "0.0.0.0", "pageSize": 30, "proxy": false, "db": "mongodb://localhost/easy-mock", "unsplashClientId": "", "redis": { "keyPrefix": "[Easy Mock]", "port": 6379, "host": "localhost", "password": "", "d
2020-08-12 00:30:45 144
原创 react 报错案例
There might be a problem with the project dependency tree.It is likely not a bug in Create React App, but something you need to fix locally.Manually installing incompatible versions is known to cause hard-to-debug issues.If you would prefer to ignore th
2020-08-02 23:15:31 165
原创 javascript map
map对象增删改查.set 添加.get 获取.delete 删除.clear 清空.size 获取大小var mapdog = new Map();mapdog.set("age", 12);mapdog.get(12);mapdog.delete("age")取值方法.keys().values().entries()遍历foreachforof mapdog.forEach((value, key)=>{ console.log
2020-08-01 23:45:58 143
原创 django搭建项目
创建项目 django-admin startproject djangomockservice创建模块 python manage.py startapp files生成数据表 python manage.py migrate python manage.py makemigrations创建用户
2020-07-27 22:10:53 96
原创 python学习
pipreqs ./ --encoding=utf-8 可以生成requirement列表pip install -r requirements.txt 安装python依赖
2020-07-18 01:17:33 108
原创 前端相关 - nodemon
引用于 https://blog.csdn.net/qq_36727756/article/details/88797699安装npm install -g nodemon启动服务nodemon [your node app] 或者nodemon ./server.js localhost 8080 或者nodemon --debug ./server.js 80帮助nodemon -h
2020-07-12 18:11:10 135
原创 工具篇 - vscode
常用插件REST Client创建一个 .http文件编写测试接口文件GET https://apiblog.jspang.com/default/getArticleList HTTP/1.1content-type: application/json{ "data":"胖哥是最帅的"}发送请求,测试接口点击Send Request,或者右键选择Send Request...
2020-07-12 14:28:20 135
原创 前端相关 - 箭头函数
博客内容引用自以下链接 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions基础语法(param1, param2, …, paramN) => { statements } (param1, param2, …, paramN) => expression//相当于:(param1, param2, …, paramN) =>{ return ex.
2020-07-12 11:51:56 178
原创 前端相关 - react命令
react 模块安装npm install react-redux --savenpm install react-router-dom --save-devnpm install react-router-config --save
2020-07-12 11:48:04 119
原创 前端相关 - redux项目搭建
src目录结构src store index.js reducer.js index.js TodoList.js示例src中 index,js 内容import React from 'react'import ReactDOM from 'react-dom'import TodoList from './TodoList'import {Provider} from 'react-redux'import store from './store'const App
2020-07-12 11:30:08 127
原创 前端相关 - express模拟接口数据
步骤新建目录,初始化项目安装express数据配置步骤解析-新建文件夹mymockservice,进入其中;-执行 npm init -y 初始化项目;-新建index.js 、datalist.json 文件,datalist,json用于构造返回数据,index.js构造接口;index.js配置const express =require("express");const app=express();// 用于设置跨域请求app.all('*', function (r
2020-07-12 11:02:16 264
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人