Easter79 Easter79
3年前
tp5 统一返回json格式
控制器调用publicfunctionjson(){if(request()isPost()){returnjsonData(1,'转换成功',数据(可不填));    }   }公共方法/返回统一格
Wesley13 Wesley13
3年前
java后台常用json解析工具问题小结
若排版紊乱可查看我的个人博客原文地址(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fyangshaoxiang.github.io%2F2017%2F10%2F20%2Fjava%25E5%2590%258E%25E5%258F%25B0%25E5%25B8%25B8%25E7%259
Easter79 Easter79
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Stella981 Stella981
3年前
Json转换神器之Google Gson的使用
这几天,因为项目的需要,接触了Google的Gson库,发现这个东西很好用,遂记下简单的笔记,供以后参考。至于Gson是干什么的,有什么优点,请各位同学自行百度。1\.下载Gson拷贝到项目的lib文件夹中,并将其加入到buildPath中。使用maven的同学,直接在pom中加入以下依赖即可:<dependenc
Stella981 Stella981
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Wesley13 Wesley13
3年前
VS Code:快捷方式
转于:vscode:VisualStudioCode常用快捷键(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flzw.me%2Fa%2Fvscodevisualstudiocodeshortcut.html)博主:魚魚(https://www.oschina
Easter79 Easter79
3年前
SpringBoot配置Swagger实例(POST接收json参数)
工程目录结构:!(https://oscimg.oschina.net/oscnet/207b6df22d35c70fd7ef5ba084e9e0eff60.png)首先,引入jar包,只需要以下两个即可<dependency<groupIdio.springfox</groupId<
Wesley13 Wesley13
3年前
JAVA项目实战
本节分享高德地图API实现web服务端导航和定位等功能packagecom.example.combat.gaodemapUtils;importcn.hutool.core.io.FileUtil;importcom.alibaba.fastjson.JSON;importcom.alibaba.
Stella981 Stella981
3年前
SpringBoot配置Swagger实例(POST接收json参数)
工程目录结构:!(https://oscimg.oschina.net/oscnet/207b6df22d35c70fd7ef5ba084e9e0eff60.png)首先,引入jar包,只需要以下两个即可<dependency<groupIdio.springfox</groupId<
Stella981 Stella981
3年前
Elasticsearch集群配置
2.修复系统配置 注意修改这样可能会出现suroot转不过去问题vi/etc/security/limits.conf新增内容如下:\hardnofile65536\softnproc2048\hardnproc4096\softmemlockunlimited\hardm