摘要: 安装 npm install --save cos-js-sdk-v5 spark-md5 阅读全文
posted @ 2018-12-04 16:15 全栈冲鸭! 阅读(2839) 评论(0) 推荐(0) 编辑
摘要: @Autowired private RedisTemplate redisTemplate; @Override public void getaccessToken() { 可设置定时任务,避免token过期 //获取access_token String url = "https://api. 阅读全文
posted @ 2018-11-23 10:51 全栈冲鸭! 阅读(230) 评论(0) 推荐(0) 编辑
摘要: @Query(value="SELECT c.byname as byname, c.cart as cart,c.phone as phone,c.surname as surname, c.id as id,c.update_time as updateTime,c.head_img as he 阅读全文
posted @ 2018-10-12 10:52 全栈冲鸭! 阅读(16140) 评论(0) 推荐(0) 编辑
摘要: package cn.springBoot.controller;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.PostMapping; 阅读全文
posted @ 2021-10-17 18:00 全栈冲鸭! 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 前言 在java8之后我们list转map再也不用循环put到map了,我们用lambda表达式,使用stream可以一行代码解决,下面我来简单介绍list转map的几种方式,和转为map后对map进行分组、求和、过滤等操作。 正文 数据准备 我们准备一个ArrayList,故意让age有一对重复值 阅读全文
posted @ 2019-05-17 18:09 全栈冲鸭! 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#####################################################Environment Setting####################################################### #程序代码数组APPS 阅读全文
posted @ 2019-04-01 16:30 全栈冲鸭! 阅读(923) 评论(0) 推荐(0) 编辑
摘要: package com.yitiantec.ecommerce.admin.config; import java.lang.reflect.Method;import org.aspectj.lang.JoinPoint;import org.aspectj.lang.annotation.Asp 阅读全文
posted @ 2018-12-12 16:37 全栈冲鸭! 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package spring.resultConfig; import com.fasterxml.jackson.core.JsonGenerator;import com.fasterxml.jackson.core.JsonProcessingException;import com.fast 阅读全文
posted @ 2018-12-12 11:45 全栈冲鸭! 阅读(1932) 评论(0) 推荐(0) 编辑
摘要: private Specification<CuserQuestion> buildSpecification(CuserQuestionDTO cuserQuestionDTO) { return new Specification<CuserQuestion>() { public Predic 阅读全文
posted @ 2018-12-07 16:04 全栈冲鸭! 阅读(158) 评论(0) 推荐(0) 编辑
摘要: @Query(value="SELECT ca.cuser_question_id as cuserQuestionId, ca.id AS id, ca.answer_content AS answerContent, ca.create_time AS createTime, ca.laud A 阅读全文
posted @ 2018-11-27 15:26 全栈冲鸭! 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 前端一般传参时间类型到后台 一般用Date接收没有问题,但是后台返回时间类型 前端一般需要转换 这里可以避免该问题 然后这里就要用到一个东西: @JsonFormat,它的作用是,出参时,自动把Date型对象数据转化成正确的格式化后的字符串出去 结论是: 1.前端如果传来的是json数据,时间格式是 阅读全文
posted @ 2018-11-23 17:33 全栈冲鸭! 阅读(1490) 评论(0) 推荐(0) 编辑