- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 mongoDB操作
1、比较两个字段值是否一样db.getCollection(‘actionData’).find({“$where”: “this.TIME == this.SYSTEMTIME”}).limit(10);2、查询表中相同字段db.actionData.aggregate([{‘KaTeX parse error: Expected '}', got 'EOF' at end of in...
2018-11-30 13:56:14 163
原创 springboot— MongoDb 排序查询
Sort sort = new Sort(Sort.Direction.ASC, "DEVID").and(new Sort(Sort.Direction.ASC, "TIME"));//多条件DEVID、timeCriteria criteria = Criteria.where("CHECK").i
2018-11-06 09:04:59 14291 2
转载 文件转MD5字符串
public class FileTransformMD5 {public static String getMD5(File file) {BigInteger MD5 = null;try {byte[] buffer = new byte[8192];int len = 0;MessageDigest md = MessageDigest.getInstance(“MD5”);...
2018-11-05 14:42:18 1645
原创 spring http请求乱码处理
@RequestMapping(value="queryDevideErrorInfo.do",produces = "application/json;charset=utf-8")public @ResponseBody Object queryDevideErrorInfo(String devId,String werks,String workShop,String area,Stri...
2018-09-15 10:10:02 791
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人