摘要: @WebFilter(urlPatterns = "/*")public class LoginChechedFilter implements Filter {//拦截方法,只要资源链接被拦截就会触发此方法 @Override public void doFilter(ServletRequest 阅读全文
posted @ 2024-02-25 23:16 hongdouni 阅读(92) 评论(0) 推荐(0)
摘要: 1、导入pom.xml依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.1</version> </dependency></dependencies> 2、生成 阅读全文
posted @ 2024-02-25 23:15 hongdouni 阅读(26) 评论(0) 推荐(0)
摘要: @Entity <dependency> <groupId>javax.persistence</groupId> <artifactId>javax.persistence-api</artifactId> <version>2.2</version> <!-- 请根据你的需要选择版本 --></ 阅读全文
posted @ 2024-02-24 03:58 hongdouni 阅读(351) 评论(0) 推荐(0)
摘要: 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency> CorsFilter 才可以配置引用 @Config 阅读全文
posted @ 2024-02-24 01:57 hongdouni 阅读(32) 评论(0) 推荐(0)
摘要: main目录下 创建 resources 创建application.yml 配置pom.xml 引入依赖 <!-- mysql 连接java 的驱动程序--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-jav 阅读全文
posted @ 2024-02-24 01:42 hongdouni 阅读(29) 评论(0) 推荐(0)
摘要: 安装 npm install vuex --save store下index.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { }, gett 阅读全文
posted @ 2024-02-24 01:10 hongdouni 阅读(6) 评论(0) 推荐(0)
摘要: vue.config.js中配置 module.exports = defineConfig({ transpileDependencies: true, devServer:{ proxy:{ '/api':{ target:'http://localhost:8088', changeOrigi 阅读全文
posted @ 2024-02-24 01:00 hongdouni 阅读(11) 评论(0) 推荐(0)
摘要: 下载 axios npm install axios -g 下载element-ui npm i element-ui -S Axios 全局引入 在main.js中使用 import axios from 'axios' Vue.prototype.$axios=axios; //加载到原型上 就 阅读全文
posted @ 2024-02-24 00:46 hongdouni 阅读(62) 评论(0) 推荐(0)
摘要: Form 组件提供了表单验证的功能,只需要通过 rules 属性传入约定的验证规则,并将 Form-Item 的 prop 属性设置为需校验的字段名即可。校验规则参见 async-validator <el-form :model="ruleForm" :rules="rules"> <el-for 阅读全文
posted @ 2024-02-07 22:49 hongdouni 阅读(27) 评论(0) 推荐(0)
摘要: 题目理解:这题目的意思是传入这个方法里的是,两个逆序的链表,而题目给出的示例,只是输入的值,则运算的方法里返回值也是逆序的就好。 Definition for singly-linked list. struct ListNode { int val; ListNode *next; ListNod 阅读全文
posted @ 2023-11-06 19:32 hongdouni 阅读(26) 评论(0) 推荐(0)