![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spingboot
文章平均质量分 66
木鱼未来
这个作者很懒,什么都没留下…
展开
-
fastDFS笔记
前言FastDFS(Fast Distributed File System)是一款开源轻量级分布式文件系统。安装libfastcommon获取libfastcommon安装包:通过Xftp上传到服务器https://github.com/happyfish100/libfastcommon/archive/V1.0.38.tar.gz解压安装包:tar -zxvf V1.0.38.tar.gz进入目录:cd libfastcommon-1.0.38执行编译:./make.s原创 2021-05-21 09:15:52 · 1686 阅读 · 0 评论 -
Springboot Controller返回json数据和html网页的区别
请求及路径映射部分注解介绍注解名称描述@Controller处理http请求@RestControllerSpring4之后新加的注解,原来返回json,需要@ResponseBody配合@Controller@RequestMapping配置url映射//两者效果相同//原来@Controllerpublic class TestController { @ResponseBody @RequestMapping("/hello")原创 2021-05-21 09:12:17 · 686 阅读 · 0 评论 -
后台接收前端数据的方式以及格式
SpringBoot Controller接收参数的几种常用方式第一类:请求路径参数1、@PathVariable获取路径参数。即url/{id}这种形式。2、@RequestParam获取查询参数。即url?name=这种形式例子GEThttp://localhost:8080/demo/123?name=suki_rong对应的java代码:@GetMapping("/demo/{id}")public void demo(@PathVariable(name = "id") St原创 2021-05-21 09:10:26 · 3953 阅读 · 0 评论