自定义博客皮肤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 27897 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 10145 6

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

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

2018-05-02 16:43:34 4639

原创 python 定时备份sqlite数据库

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

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

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

1.安装 memcacheapt-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 341

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

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

2017-12-30 13:11:23 5663

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

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

2017-12-29 10:08:14 276

原创 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 390

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

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

2017-12-28 11:22:52 1332

空空如也

空空如也

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

TA关注的人

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