2023年5月21日

JWT 和MD5加密工具类的封装是使用

摘要: jwt 1 package com.atguigu.common.jwt; 2 3 import io.jsonwebtoken.*; 4 import org.springframework.util.StringUtils; 5 6 import java.util.Date; 7 8 //jw 阅读全文

posted @ 2023-05-21 21:21 你就学个JVAV? 阅读(102) 评论(0) 推荐(0)

maven静态资源配置文件问题

摘要: 由于src-main-java里面的文件默认只加载.java类型的文件,如果需要将xml文件或者其他文件放到java文件夹中 需要在pom文件中进行配置 1 <resources> 2 <resource> 3 <directory>src/main/java</directory> 4 <incl 阅读全文

posted @ 2023-05-21 21:01 你就学个JVAV? 阅读(72) 评论(0) 推荐(0)

knife4j配置swagger接口测试

摘要: 导入依赖 1 <dependency> 2 <groupId>com.github.xiaoymin</groupId> 3 <artifactId>knife4j-spring-boot-starter</artifactId> 4 <version>3.0.3</version> 5 </dep 阅读全文

posted @ 2023-05-21 20:41 你就学个JVAV? 阅读(66) 评论(0) 推荐(0)

dockerfile示例

摘要: FROM conetos VOLUMES['volumes01','volumes02'] 容器挂载相互同步 先启动一个 docker run -it --name docker01 centos:1.0 在启动一个 docker run -it --name docker02 --volumes- 阅读全文

posted @ 2023-05-21 17:49 你就学个JVAV? 阅读(38) 评论(0) 推荐(0)

docker常用命令使用

摘要: commit(作为一个新的镜像方便使用,可使用docker images进行查看新的镜像) docker commit -a="author info" -m="ps info" mirrorid new-mirror-name 容器数据卷挂在,将容器内的目录挂在到本机linux上 端口暴露需修改成 阅读全文

posted @ 2023-05-21 17:47 你就学个JVAV? 阅读(14) 评论(0) 推荐(0)

vue集成markdown

摘要: 安装 (二选一) npm : npm install mavon-editor -S yarn : yarn add mavon-editor -S main.js进行全局注册 //main.js全局注册 import mavonEditor from 'mavon-editor' import ' 阅读全文

posted @ 2023-05-21 17:44 你就学个JVAV? 阅读(231) 评论(0) 推荐(0)

vue.config.js跨域配置,以及代理配置

摘要: 1 //配置代理后端路径 2 //并设置跨域 3 module.exports = { 4 devServer: { 5 port: 2222, //启用时的端口号 6 proxy: { //代理访问后端接口 7 8 //配置拦截器替换规则 9 '/api' : { //碰到路径中带有/api的路径 阅读全文

posted @ 2023-05-21 17:42 你就学个JVAV? 阅读(582) 评论(0) 推荐(0)

封装axios

摘要: import axios from "axios"; const request = axios.create({ baseURL: "/api", //统一前缀 timeout: 5000, }); //request拦截器 request.interceptors.request.use( fu 阅读全文

posted @ 2023-05-21 17:41 你就学个JVAV? 阅读(17) 评论(0) 推荐(0)

路由守卫简单逻辑

摘要: router.beforeEach((to,from,next) => { let token = localStorage.getItem('token') // alert(token) //debug if(token){ next() } else { if( to.path '/login 阅读全文

posted @ 2023-05-21 17:41 你就学个JVAV? 阅读(11) 评论(0) 推荐(0)

vue集成高德地图

摘要: <template> <div style="width:100%; height:100%; background-color:gray; display:flex; justify-content:center; align-items:center"> <!-- loding-icon --> 阅读全文

posted @ 2023-05-21 17:40 你就学个JVAV? 阅读(80) 评论(0) 推荐(0)

导航