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)

vue实现页面无限滚动

摘要: <div id="load2" class="infinite-list" v-infinite-scroll="load" style="overflow:auto; display: flex;flex-wrap: wrap;justify-content: center;" > <el-car 阅读全文

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

vue集成websocket

摘要: 安装websocket yarn add nodejs-websocket 导入并创建服务端 /** * 服务端代码 */ // 1.导入nodejs-websocket包 const ws = require('nodejs-websocket'); const PORT = 3000 // 2. 阅读全文

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

后端拦截器

摘要: package com.huoziqi.springboot.common.config; import com.huoziqi.springboot.common.handler.LoginInterceptor; import org.springframework.context.annota 阅读全文

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

MybatisPlusConfigration

摘要: package com.huoziqi.springboot.common.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.extension.plugins.Myb 阅读全文

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

手动实现分页查询(菜鸟版)

摘要: public Map<String,Object> selectPage(Integer pageNum, Integer pageSize,String username,String email,String address) { // 拼接sql username = "%"+username 阅读全文

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

文件上传下载

摘要: 文件上传 /** * 文件上传 * @return */ @PostMapping(value = "/upload") public String fileUpload(@RequestParam MultipartFile file) throws IOException { //获取源文件名 阅读全文

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

UserThreadLocal简单使用

摘要: 1 package com.huoziqi.springboot.utils; 2 3 /** 4 * @version 1.0 5 * @Author 作者名 6 * @Date 2022/10/22 11:16 7 */ 8 9 import com.huoziqi.springboot.ent 阅读全文

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

springboot集成websocket

摘要: 导入依赖 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-websocket</artifactId> 4 </dependency> 编写配置类 @Conf 阅读全文

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

简单封装JWTUtils实现对token的创建和过期时间检查

摘要: 想要使用jwt需要先导入依赖 <!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</arti 阅读全文

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

web.xml

摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文

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

ajax的几种请求方式

摘要: 1 $.ajax({ 2 type: 'get', 3 url: 'js/cuisine_area.josn', 4 async: true 5 }) 6 7 // 忽略返回值, 传递参数 8 $.get('url',{name: 'nihao'}) 9 10 // 有返回值,有参数 11 $.ge 阅读全文

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

线程的三个辅助类

摘要: Semaphore 1 package com.huo.HelperClass; 2 3 import java.util.concurrent.Semaphore; 4 import java.util.concurrent.TimeUnit; 5 6 /** 7 * @version 1.0 8 阅读全文

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

锁机制和信号量机制实现水果问题,同步机制

摘要: 使用Semaphore类实现 package com.huo.HelperClass.demo; import sun.security.krb5.internal.TGSRep; import java.util.concurrent.Semaphore; /** * @version 1.0 * 阅读全文

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

导航