自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 问答 (1)
  • 收藏
  • 关注

原创 springboot 2.0 配置 spring.jackson.date-format 不生效

问题:application.properties中的如下配置不生效,返回时间戳spring.jackson.date-format=yyyy-MM-dd HH:mm:ss原因分析:       拦截器继承的 WebMvcConfigurationSupport !       以前是用 WebMvcConfigurerAdapter ,springboot 2.0 建议使用 WebMvcConf...

2018-07-09 11:28:05 28048 5

原创 Spring Data Jpa 查询@Query返回自定义DTO

Demodtopackage com.demo.user.dto; public class UserInfoResponse { private String userId; private String username; private String email; public UserInfoResponse(){}   //重点注意!用于qu...

2018-06-01 10:50:25 10285 3

原创 SpringBoot WebSocket 发送消息给指定的用户

引用博客地址 https://blog.youkuaiyun.com/zhangdehua678/article/details/78913839我这里没有写全,主要是说发送给指定的用户,所以建议先参考原博.这里主要修改了其WebSocketServer.通过userCode来标识用户.import org.springframework.stereotype.Component; import javax...

2018-05-02 16:43:34 4747

原创 python 定时备份sqlite数据库

test.py # -*- coding: utf-8 -*- #!usr/bin/python3 import sqlite3 import datetime import time #备份 def bakSqlite(): conn = sqlite3.connect("/home/yangxd/Projects/easyMeeting/cgi/easymeeting.d

2018-01-12 19:38:11 2275 2

原创 Ubuntu16.04 python memcache缓存的使用

1.安装 memcache apt-get install memcached 启动 memcached -d -m 10 -u root -l 127.0.0.1 -p 12000 -c 256 -P /tmp/memcached.pid -m 是分配给Memcache使用的内存数量,单位是MB,默认64MB -l 是监听的服务器IP地址,默认为所有网卡 -p 是设置

2018-01-12 14:28:47 397

原创 js日期字符串(年月日)与时间戳的转换

1.日期转时间戳 例:日期字符串格式为 2017-12-30 var timestr = date.replace(/-/g,'/'); var timestamp = new Date(timestr).getTime(); 2.时间戳转日期 此处时间戳只精确到日 例:时间戳 1514563200000 function add0(m){return m<10?'0'+m:m }

2017-12-30 13:11:23 5747

原创 ubuntu16.04安装部署python应用 nginx+uwsgi (整合)

当时搞了好久 最终将以下三篇文章整合在一起,终于搞定了... 1.安装虚拟环境pyenv+virtualenv http://blog.youkuaiyun.com/databatman/article/details/53955828 2.安装nginx+uwsgi(这里主要是用到了其中uwsgi部分,nginx在步骤3中) http://www.linuxidc.com/Linux/2016-0

2017-12-29 10:08:14 317

原创 ubuntu16.04使用git

这里主要说下关联到github1.安装git   apt-get install git-core2.配置git(全局)  git config --global user.name "your name"  git config --global user.email "example@email.com"3.创建ssh公钥(生成的密钥文件在 ~/.ssh 目录下)  ssh-keygen -C...

2017-12-28 13:48:24 429

原创 ubuntu16.04安装完之后的初始化

安装过程就不说了 先说下安装完之后,首先要做的 建议先安装Vmware Tools 1.进入命令行 修改root密码   sudo passwd root 进入root:   su root 2.修改dns   gedit /etc/network/interfaces 在它的最后增加一句:(这是我的配置)   dns-nameservers 114.114.114.1

2017-12-28 11:22:52 1371

空空如也

空空如也

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

TA关注的人

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