- 博客(35)
- 收藏
- 关注
原创 docker安装nocos1.3.1
docker run -d -e prefer_host_mode=124.222.227.132 -e MODE=standalone -v /nacos/logs:/home/nacos/logs -p 28999:8848 --name nacosdemo --restart=always nacos/nacos-server #使用的时候合成一段即可 docekr启动镜像命令。
2023-09-08 16:27:55
187
原创 maven打包(清测试有效)
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</ve.
2022-05-19 09:41:46
123
原创 前置路由守卫vue
router.beforeEach((to,from,next)=>{ if(to.path === '/' || to.path === '/register'){//去登录跟注册放行 return next() }//其他的都进行验证 if(localStorage.getItem('token') !== null){//有token的放行 //保存token store.commit('setToken',localStorage.getItem('to.
2022-05-05 11:32:09
509
原创 vue-elment-admin中使用markdown
引入import MarkdownEditor from '@/components/MarkdownEditor'注册components: { MarkdownEditor },使用<markdown-editor ref="markdownEditor" v-model="info.detail" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" width="100%" />
2022-04-28 16:23:51
519
原创 vue中绘制中国地图(展示各地区数据)
<template> <div> <div ref="main" id="main"> </div> </div></template><script>import * as echarts from "echarts"import {chinaMap} from "../../utils/chinaMap"export default { data() { ret.
2022-04-25 16:37:16
3807
2
原创 一招教你‘GAI’决windows端口被占用
//先找到端口号对应的pid(更改下方8080端口)netstat -ano|findstr "8080"//然后把瞄准这个id杀死他(更改下方19368id)taskkill /f /pid 19368 /t
2022-04-25 09:38:28
80
原创 vue中用echats绘制中国地图
1.导入echatsnpm install echarts --save2.在utils文件夹下创建chinaMap.js文件3.将下面代码引入到chinaMap文件中)export let chinaMap = (这里是中国地图的矢量数据由于数据过多,不让上传你们可以访问下面地址来获取)矢量数据地址:阿里中国地图矢量库然后你就可以开始绘制中国地图了1.代码如下<template> <div> <div re
2022-04-24 21:59:07
1672
2
原创 vue解决创建index文件名报错
在.eslintrc.js的文件rules配置项中添加:"vue/multi-word-component-names":"off",ok了
2022-04-24 19:55:36
1447
1
原创 记录vue中promis使用方法
<el-button type="success" @click="sendVerify('abc')">通过验证</el-button><el-button type="danger" @click="sendVerify('abcd')">不通过验证</el-button>methods:{ sendVerify(e){ new Promise((resolve, reject) =>{ .
2022-04-19 21:04:59
138
原创 aop中execution表达式
@AfterThrowing("execution(* com.wang.weather.controller..UserController.*(..))")注解@AfterThrowing:在切点抛出异常时执行execution():表达式主体第一个* :任意返回值com.wang.weather.controller.. :表示在controller包及其自包,.. :子孙包都生效UserController: 在这个包下的只有UserController这个类生效(改为*则所有.
2022-04-14 00:54:21
499
原创 gateway的报错解决,排除不需要的依赖
Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
2022-04-01 11:28:35
1287
原创 java用于springboot中接口返回数据工具
工具类名称:ResDatapackage com.wang.utils;// 用于返回带有状态码,消息和数据的json数据public class ResData { public static final String OK_MSG = "操作成功!"; public static final String ERR_MSG = "后台报错!"; private int status; // 状态码 private String msg; // 返回的消息
2022-03-25 15:24:01
847
原创 elmentui-table固定头
1.固定表头:如果表格过长,需要做滚动效果,但是又不想让表格整体都滚动。那么我们可以做表格头部固定,内容进行滚动。 <el-table height="400"> </el-table>这里的height给值即可,是不是很简单。解释:超过高度400,表格的表头固定不动,内容支持滚动。...
2022-03-19 03:32:02
5235
1
原创 前后端分离,前端请求后端照片404
配置:去application配置下方配置,后面从D:开始的配自己的静态文件夹的绝对路径spring.resources.static-locations= file:D://study/after end/shop/src/main/resources/static
2022-03-04 19:00:35
1662
原创 vue时间转换工具day.js使用
1.安装:npm install dayjs --save2.引入import dayjs from 'dayjs'3.使用dayjs("要转换的时间").format("YYYY-MM-DD")#大师我学废了#
2022-03-04 14:33:08
270
原创 mysql8连接地址配置时区
spring.datasource.url=jdbc:mysql://localhost:3306/mybatisplussy?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8配置:useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
2022-01-20 18:29:47
1925
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人