自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 swagger测试和后台传参标签备忘

swagger测试和后台传参标签备忘 在项目中使用@RequestParam Map<String, Object> params 标签时发现在swagger接口页面上无法进行测试,传入params参数时格式均不正确,最后改用@RequestBody进行传参,可以以json的格式向服务端传入参数。 标签说明 @RequestParam 可以用get方法,参数为url?xxx=xxx格...

2019-10-23 16:43:37 1184

转载 读取Properties的另一种方式备忘

代码如下

2018-05-24 13:54:25 221

原创 通过PropertyPlaceholderConfigurer暴露properties到自定义类的属性中以供使用备忘

classpath:jdbc.properties PropertyConfigurer类如下: import org.springframework.beans.BeansException; import org.springframework.beans.factory.config...

2018-05-23 12:25:59 368

原创 vue2.0 jsonp 与java后台实例备忘

配置callback返回的函数名,在后台中获取对应函数名,否则会报错。 import {getDataFunc} from 'api/category' import {ERR_OK} from 'api/config' export default { created(){ this._getCategory() }, data(){ ...

2018-03-21 16:00:46 580

原创 sql if写法备忘

以下为实例 SELECT province_code, province_name, city_name, city_code, city_id FROM province_city WHERE

2018-02-01 11:32:26 180

原创 解决服务器部署后星期中文乱码,设置本地字符编码

Locale localeCN = Locale.SIMPLIFIED_CHINESE; SimpleDateFormat dateFm = new SimpleDateFormat(“EEEE”, localeCN);

2018-02-01 10:15:26 630

原创 mybatis分页插件 pagehelper配置pagehelper

applicationContext.xml配置

2018-01-31 13:56:56 222

原创 关于base64加密遇到的坑

java8的base64加密生成字符串中不会有空格回车,其他包中生成的字符串中有可能存在 //此处为java8的base64 public static String createSig(String params_str) throws Exception { String asB64 = Base64.getEncoder().encodeToString(params_

2018-01-23 16:10:00 3529

原创 python hmac

signature = urllib.quote( base64.b64encode( hmac.new(privateKey, url, digestmod=hashlib.sha1) .digest() ))

2017-12-08 09:04:16 790

原创 python 中sql写法小例

sql = “insert into t_weather_new(timestamp, content, type)” \ ” values (%s,%s,%f) ON DUPLICATE KEY UPDATE ” \ “t_weather_new.content = (%s),t_weather_new.timestamp = (%s)”\

2017-12-07 16:47:00 863

原创 python http请求设置代理

proxy_info = {‘host’: ‘ip’, ‘port’: port, ‘user’: ‘xxx’, ‘pass’: ‘xxx’ } proxy_support = urllib2.ProxyHandler({“http”: “

2017-12-07 11:55:07 1912

转载 java向https链接发送post请求

import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.URL; import java.security.cert.CertificateException; import java.security.cert.

2017-10-23 17:43:49 1368

转载 java HMACSHA1与php hash_hmac 函数

package com.neusoft.QDrive.utils; import javax.crypto.Mac;   import javax.crypto.SecretKey;   import javax.crypto.spec.SecretKeySpec; public class HMACSHA1 { private static final String MAC_NAME

2017-10-17 19:05:53 1365

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除