自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(39)
  • 收藏
  • 关注

原创 浅谈一下我对token的理解

token是一段字符串。这段字符串可以包含一些用户信息,也可以就是一段单纯的毫无意义的字符。

2023-09-02 10:11:32 224

原创 Nginx搭建本地服务器,无需购买服务器即可测试vue项目打包后的效果

本文是在windows环境(Linux环境下其实也大同小异)下基于Nginx实现搭建本地服务器,手把手教你部署vue项目。

2023-08-14 16:40:54 932

原创 阿里巴巴图标矢量库使用方法详解,适用于各种框架

官网使用了三种方法,我将逐一讲解,有不对之处还请各位大佬指正添加到购物车,选择完成后点击上方导航栏图标之后选择添加至项目(没有项目可以临时创建一个)选择完成之后会自动跳转至资源管理界面,查看刚才的选择的图标如果是vue项目,可以把代码复制在app.vue的style标签里,如果没有使用框架,直接写在css文件里引入即可。

2023-08-10 16:41:04 3704

原创 在拦截器内刷新token有效期

使用redisTemplate的expire函数便可刷新token的有效期,其中三个参数,第一个为token的名字,为String类型,第二个是持续时间,为Long类型,第三个是时间单位,可以是时分秒,为TimeUnit类型。token可用于标识用户,确认登录状态,一般都会给其设置一个有效期,为了避免出现用户还在网站上操作,而token过期,需要用户重新登录的乌龙事件出现,我们需要在客户端发请求的同时刷新token的有效期。

2023-08-02 09:13:52 280

原创 vue 动态设置下拉框的默认值

下拉框的默认值一般为第一个option,通过给select标签绑定v-model属性,改变其值就可实现动态设置下拉框的默认值。修改其值为option的value值,便可设置下拉框默认值,如 selectlevel:"普通用户",就有以下效果。最后通过各种方法修改selectlevel的值就可以动态修改下拉框的默认值啦。在data中声明变量selectlevel。

2023-07-25 10:34:34 2931 1

原创 复选框的checked属性

假如我们需要根据表达式来确定复选框初始状态怎么办呢,checked=“表达式”,这种写法肯定是不行的,那怎么解决呢,解决的方法那可是太简单了,知道的时候我甚至都感叹自己的愚蠢。没错,就是用v-model修饰即可,这样之后复选框的初始状态就会随表达式的值而变化。大家认为以下复选框的选中结果是什么呢。

2023-07-24 17:06:19 222

原创 SpringBoot自定义注解AOP传值和取值问题

若是在自定义注解里只定义了一个变量写法如下 @PermissionCheck(permission = "管理员")若是这个变量为value 则可以省略变量名@PermissionCheck("管理员")这里我定义的注解是作用在方法上的,定义切面内的方法,会在调用接口前或中或后的时间内执行,而取值也是在其中取值。如需传多个值,则只需要一一罗列即可@PermissionCheck(变量a= valuea,变量b=valueb,...)我们首先定义好我们的注解。取值需要定义一个切面。

2023-07-19 14:24:44 385

原创 setinterval和settimeout两个定时器的联合使用

这里小伙伴可能会遇到一个问题,那就是浏览器还没有收到上一个请求的结果,就已经发送了下一个请求,这样在停止定时器后还会得到一个结果,而根据后端的逻辑的不同,两个结果可能是不一致的,这样就会导致一定的问题。setInterval方法虽然能够简单便捷的实现无限重复执行,但是每次都会开启一个新的定时器,长此以往,会严重的影响项目的性能,而将两个定时器联合使用,则可以很好的避免这种情况。因为通过settimeout启动的定时器会在执行后自动清除。

2023-07-18 17:01:32 545

原创 springboot自定义注解(AOP)的简单使用

主要的我就用了两个,一个before,一个around。只需和其他注解一样写在方法前即可。二.自定义注解可执行方法。一.自定义注解的声明。

2023-07-17 14:12:20 255

原创 springboot 拦截器无法自动注入Bean解决方案

拦截器加载时间在springcontext之前,也就是在Bean加载之前就已经加载了拦截器,此时拦截器中注入的Bean为null。让拦截器执行的时候实例化拦截器Bean,在拦截器配置类里面先实例化拦截器。拦截器不变,拦截器配置修改后如下。修改前拦截器配置如下。

2023-07-14 09:49:29 547

翻译 2022.02.18翻译Running Student

Running Student题目(https://acs.jxnu.edu.cn/problem/CF9B)描述:And again a misfortune fell on Poor Student. He is being late for an exam.Having rushed to a bus stop that is in point (0, 0), he got on a minibus and they drove along a straight line, parallel

2022-02-18 16:24:06 139 1

翻译 2022.02.17翻译TrDie Roll

Die Roll题目(https://acs.jxnu.edu.cn/problem/CF9A)描述:Yakko, Wakko and Dot, world-famous animaniacs, decided to rest from acting in cartoons, and take a leave to travel a bit. Yakko dreamt to go to Pennsylvania, his Motherland and the Motherland of his ance

2022-02-17 15:35:59 96

翻译 2022.02.16翻译Beads

Beads题目(https://acs.jxnu.edu.cn/problem/CF8E)描述:One Martian boy called Zorg wants to present a string of beads to his friend from the Earth — Masha. He knows that Masha likes two colours: blue and red, — and right in the shop where he has come, there is

2022-02-16 16:05:39 116

翻译 2022.02.14翻译Two Friends

Two Friends题目(https://acs.jxnu.edu.cn/problem/CF8D)描述:Two neighbours, Alan and Bob, live in the city, where there are three buildings only: a cinema, a shop and the house, where they live. The rest is a big asphalt square.Once they went to the cinema,

2022-02-14 17:22:31 104

翻译 2022.02.13翻译Looking for Order

Looking for Order题目(https://acs.jxnu.edu.cn/problem/CF8C)描述:Girl Lena likes it when everything is in order, and looks for order everywhere. Once she was getting ready for the University and noticed that the room was in a mess — all the objects from her h

2022-02-13 16:19:09 83

翻译 2022.02.12翻译Obsession with Robots

Obsession with Robots题目(https://acs.jxnu.edu.cn/problem/CF8B)描述:The whole world got obsessed with robots,and to keep pace with the progress, great Berland's programmer Draude decided to build his own robot. He was working hard at the robot. He taught it

2022-02-12 21:37:38 137

翻译 2022.02.11翻译Train and Peter

Train and Peter题目(https://acs.jxnu.edu.cn/problem/CF8A)描述:Peter likes to travel by train. He likes it so much that on the train he falls asleep.Once in summer Peter was going by train from city A to city B, and as usual, was sleeping. Then he woke up,

2022-02-11 21:13:48 137

翻译 2022.02.10翻译Kalevitch and Chess

Kalevitch and Chess题目(https://acs.jxnu.edu.cn/problem/CF7A)描述:A famous Berland's painter Kalevitch likes to shock the public. One of his last obsessions is chess. For more than a thousand years people have been playing this old game on uninteresting, mon

2022-02-10 17:08:07 193

翻译 2022.02.09翻译Exposition

Exposition题目(https://acs.jxnu.edu.cn/problem/CF6E)描述:There are several days left before the fiftieth birthday of a famous Berland's writer Berlbury. In this connection the local library decided to make an exposition of the works of this famous science-fi

2022-02-09 22:19:31 122

翻译 2022.02.08翻译Lizards and Basements 2

Lizards and Basements 2题目(https://acs.jxnu.edu.cn/problem/CF6D)描述:This is simplified version of the problem used on the original contest. The original problem seems to have too difiicult solution. The constraints for input data have been reduced.Polyca

2022-02-08 20:33:39 73

翻译 2022.02.07翻译Alice, Bob and Chocolate

Alice, Bob and Chocolate题目(https://acs.jxnu.edu.cn/problem/CF6C)描述:Alice and Bob like games. And now they are ready to start a new game. They have placed n chocolate bars in a line. Alice starts to eat chocolate bars one by one from left to right, and Bo

2022-02-07 20:17:49 143

翻译 2022.02.06翻译President‘s Office

President's Office题目(https://acs.jxnu.edu.cn/problem/CF6B)描述:President of Berland has a very vast office-room, where, apart from him, work his subordinates. Each subordinate, as well as President himself, has his own desk of a unique colour. Each desk is

2022-02-06 15:33:15 155

翻译 2022.02.05翻译Triangle

Triangle题目(https://acs.jxnu.edu.cn/problem/CF6A)描述:Johnny has a younger sister Anne, who is very clever and smart. As she came home from the kindergarten, she told his brother about the task that her kindergartener asked her to solve. The task was just t

2022-02-05 21:19:56 140

翻译 2022.02.04翻译Bindian Signalizing

Bindian Signalizing题目(https://acs.jxnu.edu.cn/problem/CF5E)描述:Everyone knows that long ago on the territory of present-day Berland there lived Bindian tribes. Their capital was surrounded by n hills, forming a circle. On each hill there was a watchman, w

2022-02-04 19:30:52 93

翻译 2022.02.03翻译Follow Traffic Rules

Follow Traffic Rules题目(https://acs.jxnu.edu.cn/problem/CF5D)描述:Everybody knows that the capital of Berland is connected to Bercouver (the Olympic capital) by a direct road. To improve the road's traffic capacity, there was placed just one traffic sign, l

2022-02-03 21:02:31 181

翻译 2022.02.01翻译Longest Regular Bracket Sequence

Longest Regular Bracket Sequence题目(https://acs.jxnu.edu.cn/problem/CF5C)描述:This is yet another problem dealing with regular bracket sequences.We should remind you that a bracket sequence is called regular, if by inserting «+» and «1» into it we can get

2022-02-01 17:03:26 77

翻译 2022.01.30翻译Center Alignment

Center Alignment题目(https://acs.jxnu.edu.cn/problem/CF5B)描述:Almost every text editor has a built-in function of center text alignment. The developers of the popular in Berland text editor «Textpad» decided to introduce this functionality into the fourth r

2022-01-30 20:25:57 135

翻译 2022.01.29翻译Mysterious Present

Mysterious Present题目(https://acs.jxnu.edu.cn/problem/CF4D)描述:Peter decided to wish happy birthday to his friend from Australia and send him a card. To make his present more mysterious, he decided to make a chain. Chain here is such a sequence of envelope

2022-01-29 21:09:44 116

翻译 2022.01.28翻译Registration System

Registration System题目(https://acs.jxnu.edu.cn/problem/CF4C)描述:A new e-mail service "Berlandesk" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon as possible, that's why they ask you to hel

2022-01-28 17:08:15 98

翻译 2022.01.27翻译Before an Exam

Before an Exam题目(https://acs.jxnu.edu.cn/problem/CF4B)描述:Tomorrow Peter has a Biology exam. He does not like this subject much, but d days ago he learnt that he would have to take this exam. Peter's strict parents made him prepare for the exam immediatel

2022-01-27 19:15:38 102

翻译 2022.01.26翻译Watermelon

Watermelon题目(https://acs.jxnu.edu.cn/problem/CF4A)描述:One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kil

2022-01-26 21:07:22 185

翻译 2022.01.25翻译Least Cost Bracket Sequence

Least Cost Bracket Sequence题目(https://acs.jxnu.edu.cn/problem/CF3D)描述:This is yet another problem on regular bracket sequences.A bracket sequence is called regular, if by inserting "+" and "1" into it we get a correct mathematical expression. For examp

2022-01-25 16:31:34 45

翻译 2022.01.24翻译Lorry

Lorry题目(https://acs.jxnu.edu.cn/problem/CF3B)描述:A group of tourists is going to kayak and catamaran tour. A rented lorry has arrived to the boat depot to take kayaks and catamarans to the point of departure. It's known that all kayaks are of the same siz

2022-01-24 16:19:01 104

翻译 2022.01.23翻译Commentator problem

Commentator problem题目(https://acs.jxnu.edu.cn/problem/CF2C)描述:The Olympic Games in Bercouver are in full swing now. Here everyone has their own objectives: sportsmen compete for medals, and sport commentators compete for more convenient positions to give

2022-01-23 15:17:37 68

翻译 2022.01.21翻译The least round way

The least round way题目(https://acs.jxnu.edu.cn/problem/CF2B)描述:There is a square matrix n × n, consisting of non-negative integer numbers. You should find such a way on it thatstarts in the upper left cell of the matrix;each following cell is to the r

2022-01-21 11:32:28 114

翻译 2022.01.02翻译Winner

Winner题目(https://acs.jxnu.edu.cn/problem/CF2A)描述:The winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is only one player with the maximum number of points, he is the w

2022-01-20 17:17:43 102

翻译 2022.01.19翻译Ancient Berland Circus

Ancient Berland Circus题目(https://acs.jxnu.edu.cn/problem/CF1C)描述:Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.In Ancient Berland arenas in circuses were shaped as a regular (equiang

2022-01-19 16:47:08 116

翻译 2022.01.18翻译Spreadsheet

题目(https://acs.jxnu.edu.cn/problem/CF1B)描述:In the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — number B, etc. till column 26 that is marked by Z. Then there a

2022-01-18 22:14:25 99

翻译 2022.01.17翻译Theatre Square

题目 (https://acs.jxnu.edu.cn/problem/CF1A)描述:Theatre Square in the capital city of Berland has a rectangular shape with the sizen × m meters. On the occasion of the city's anniversary, a decision was taken to pavethe Square with square granite flagston..

2022-01-17 14:26:20 137

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除