
java
蜡笔小熊的猫
在互联网上留下点自己的头发
展开
-
Spring GET请求
Spring GET请求方式原创 2022-10-19 15:56:16 · 358 阅读 · 1 评论 -
REST风格书写
package com.example.rest.controller;import com.example.rest.pojo.User;import org.springframework.web.bind.annotation.*;@RestController@RequestMapping("/rest")public class UserConttroller { //查询所有 @RequestMapping(value = "/users" ,method = R.原创 2022-01-20 14:12:00 · 286 阅读 · 0 评论 -
项目常见注解
开篇 :在项目中一直会遇到不明白的注解 那么就开始看吧1. @PathVariable 用在路径的拼接时当你需要在路径传递一个参数的时候 就可以使用 PathVariable 注解了原创 2021-11-11 14:31:01 · 623 阅读 · 0 评论 -
Redis基础版(5大基础类型+3种特殊类型)
1.Redis的基本命令以及应用场景命令 描述 用法 quit 退出 127.0.0.1:6379> quit shutdown 关闭服务器 127.0.0.1:6379> shutdown config get * 获取所有的配置信息 127.0.0.1:6379> config get * config set port 6379 设置所对应的配置 端口号为 6379 127.0.0.1:6379>原创 2021-09-29 10:23:05 · 478 阅读 · 0 评论