摘要:
http://blog.leapoahead.com/2015/09/06/understanding-jwt/
阅读全文
posted @ 2020-12-22 17:07
w123w
阅读(36)
推荐(0)
摘要:
session长驻在服bai务器du存里,session有id标识,一zhi个daosession专供一个用户使用。zhuanrequest只能存在于shu一次访问容里,为了让每次访问区分开是哪个用户,所以request中会带上session的id标识,就是每个request都会属于一个sessio
阅读全文
posted @ 2020-12-22 14:59
w123w
阅读(93)
推荐(0)
摘要:
import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.http.HttpHea
阅读全文
posted @ 2020-12-01 16:48
w123w
阅读(156)
推荐(0)
摘要:
RedisTemplate 使用总结 最近在做一个项目,考虑到有累计,排行,缓存等功能;而Redis是一个基于内存的数据库,而且提供了 字符串(String), 哈希(Map), 列表(list), 集合(sets) 和 有序集合(sorted sets)等多种数据类型;因此考虑使用Redis.最终
阅读全文
posted @ 2020-11-17 17:15
w123w
阅读(2794)
推荐(0)
摘要:
直接git push origin master会报Everything up-to-date 所以先新建分支,在新分枝上完成新增提交之后合并到master分枝上,并且上传到远程 第一步、git init 第二步、git branch newBranch 第三步、git checkout newBr
阅读全文
posted @ 2020-10-30 09:21
w123w
阅读(209)
推荐(0)
摘要:
Git提交出现 Everything up-to-date 出现这个问题的原因是git提交改动到缓存,要push的时候不会将本地所有的分支都push掉,所以出现这个问题。我们应该告诉git提交哪个分支。这里有种特殊的情况是如果你是fork别人的仓库再clone到本地的话,即使git上只有一个主分支,
阅读全文
posted @ 2020-10-30 09:05
w123w
阅读(769)
推荐(0)
摘要:
Springboot整合SpringSecurity 导入security的依赖,关于security的配置 @EnableWebSecuritypublic class MyConfig extends WebSecurityConfigurerAdapter { @Override protec
阅读全文
posted @ 2020-09-17 09:38
w123w
阅读(136)
推荐(0)
摘要:
这是有史以来,研究时间最长的一个问题了,得好好写写,写的一个仿丁香医生的项目,后台用到富文本编辑器编辑内容,用springboot集成,尝试了kindeditor和uedit都没有成功,鉴于自己后台用的layui,所以用了layedit。后台接口代码自己研究的,非常的简易,暂时还没有加逻辑,但是可以
阅读全文
posted @ 2020-09-15 15:02
w123w
阅读(460)
推荐(0)
摘要:
thymeleaf 和layui表格都对[[]] 有定义,thymeleaf定义比较严格,layui比较宽松,html 页面中把[ []] 加空格或则换行就可以解决 table.render({ elem: '#table' ,url: '/pic/getList' ,id:'layTable',
阅读全文
posted @ 2020-09-12 10:37
w123w
阅读(394)
推荐(0)
摘要:
遍历在url后面加上this.id @RequestBody主要用来接收前端传递给后端的json字符串中的数据的(请求体中的数据的);GET方式无请求体,所以使用@RequestBody接收数据时,前端不能使用GET方式提交数据,而是用POST方式进行提交。在后端的同一个接收方法里,@Request
阅读全文
posted @ 2020-09-11 09:03
w123w
阅读(251)
推荐(0)