java
xiaopingguo521
这个作者很懒,什么都没留下…
展开
-
swagger测试和后台传参标签备忘
swagger测试和后台传参标签备忘 在项目中使用@RequestParam Map<String, Object> params 标签时发现在swagger接口页面上无法进行测试,传入params参数时格式均不正确,最后改用@RequestBody进行传参,可以以json的格式向服务端传入参数。 标签说明 @RequestParam 可以用get方法,参数为url?xxx=xxx格...原创 2019-10-23 16:43:37 · 1093 阅读 · 0 评论 -
关于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 · 3466 阅读 · 0 评论 -
mybatis分页插件 pagehelper配置pagehelper
applicationContext.xml配置原创 2018-01-31 13:56:56 · 191 阅读 · 0 评论 -
解决服务器部署后星期中文乱码,设置本地字符编码
Locale localeCN = Locale.SIMPLIFIED_CHINESE; SimpleDateFormat dateFm = new SimpleDateFormat(“EEEE”, localeCN);原创 2018-02-01 10:15:26 · 586 阅读 · 0 评论 -
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 · 537 阅读 · 0 评论 -
通过PropertyPlaceholderConfigurer暴露properties到自定义类的属性中以供使用备忘
classpath:jdbc.properties PropertyConfigurer类如下: import org.springframework.beans.BeansException; import org.springframework.beans.factory.config...原创 2018-05-23 12:25:59 · 330 阅读 · 0 评论 -
读取Properties的另一种方式备忘
代码如下转载 2018-05-24 13:54:25 · 183 阅读 · 0 评论