- 博客(8)
- 收藏
- 关注
原创 记录一下vue3的vite.config.js文件配置
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' import AutoImport from 'unplugin-auto-import/vite' import Components from 'unplugin-vue-components/vite' import { ElementPlusResolver } from 'unplugin-v
2022-05-13 15:31:13
1675
原创 vue3 + typescript封装axios,并使全局实例出现代码提示
一、class封装版 // 引入axios import axios, { AxiosInstance, AxiosResponse, Method, ResponseType, AxiosRequestConfig, AxiosError } from 'axios' // 引入状态管理 import store from '@/store' // 引入路由 import router from '@/router' // 引入自定义工具 impor
2021-12-31 15:38:35
1719
原创 Java封装redis工具类RedisUtils,以及在@Postconstruct注解中调用redis可能出现redisTemplate空指针异常
1、封装redis工具类RedisUtils import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ZSetOperations; import org.springframework.stereotype.Component; import javax.annotation.Resource; import java.util.List; import .
2021-05-20 15:40:46
2828
2
原创 springboot使用orika,对orika实体类映射工具封装
1、pom导入 <!-- https://mvnrepository.com/artifact/com.gitlab.haynes/orika-spring-boot-starter --> <dependency> <groupId>com.gitlab.haynes</groupId> <artifactId>orika-spring-boot-starter</artifactId> <version>
2021-04-21 18:38:56
2198
2
原创 vue封装axios、element-ui消息提示、element-plus消息提示
1、axios封装 //引入axios import axios from 'axios' //引入登录拦截 import store, {TOKEN_HEADER} from "../store"; //引入路由 import router from "../router"; //引入定义链接 import {reUrl, path} from './urls' //引入qs import qs from 'qs' import { // eslint-disable-next-line no-
2021-04-16 17:02:22
4271
原创 Springboot+jpa+sharding-jdbc实现分库分表
1、pom.xml文件 <?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:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd
2021-03-05 16:40:12
684
原创 AES加密算法 生成token
package com.ty.qdd.utils; import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.databind.ObjectMapper; import com.ty.qdd.pojo.po.app.UserInfoPO; import com.ty.qdd.pojo.vo.app.userInfo.TokenVo; import lombok.SneakyThrows; import org.apache.t
2020-10-16 18:02:34
1626
原创 使用bootstrap实现左侧菜单栏,右侧其他页面
在网上找了很多的这样的案例,但都挺复杂的,看的还累,然后在bootstrap看到了这样一个东西,看下图: 然后就自己运用了一下,效果如下图: 虽然在bootstrap中的只有iframe只有16:9和4:3两种格式,但是可以自己调整,给div一个宽高,然后设置iframe占满整个div,然后通过js赋给iframe链接进跳转,不需要通过java控制,但我不知道这样会不会有什么bug: 可能唯...
2019-10-18 01:42:35
13979
4
空空如也
vite+vue3的主题问题
2022-11-16
vite3+vue3怎么切换主题
2022-10-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人