12 2019 档案
摘要:1. 配置放行不起作用 @Override protected void configure(HttpSecurity http) throws Exception { http.cors() .and().csrf().disable()//csrf针对的是session的攻击,使用jwt就不需要
阅读全文
摘要:redis数据库: 值的类型分为五种 字符串string 哈希hash 列表list 集合set 有序集合zset数据库默认分16个库 database 0~15 客户端启动 redis-cli autu xxxxx 输入密码(requrepass)select 2 切换数据库 redis-cli
阅读全文
摘要:一、ubuntu在线安装 1.sudo apt-get install redis-server 2.验证安装成功:方法一:ps -aux|grep redis 方法二:netstat -an|grep 6379(ubuntu) 方法三:lsof -i:6379 (mac,ubuntu下需要sudo
阅读全文
摘要:Java 8的java.util套件中,新增了Base64的类别,可以用来处理Base64的编码与解码,用法如下 final Base64.Decoder decoder = Base64.getDecoder(); final Base64.Encoder encoder = Base64.get
阅读全文
摘要:vim的使用: 1. vi/vim 共分为三种模式: 分别是命令模式(Command mode) 插入模式(Insert mode) 底线命令模式(Last line mode) 进入编辑模式 i,a,o,s进入插入模式 esc从插入模式退出到命令模式 进入底行模式 :进入底行模式(再esc回到命令
阅读全文
摘要:第一类:请求路径参数 1、@PathVariable 获取路径参数。即url/{id}这种形式。 2、@RequestParam获取查询参数。即url?name=这种形式 例子 GEThttp://localhost:8080/demo/123?name=suki_rong 对应的java代码: 1
阅读全文