自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 使用fastdfs-client-java操作fastDFS

1.环境安装:参考:https://blog.csdn.net/cencfeng11/article/details/95977300fastDFS已经配置完成https://github.com/happyfish100/fastdfs-client-java下载源码命令:mvn clean installant clean package (先安装ant)mv...

2019-07-23 17:04:47 2942

转载 ubuntu16.0.4安装fastDFS

参考:https://blog.csdn.net/u014230881/article/details/78537708https://blog.csdn.net/hy245120020/article/details/786580811.下载并安装libevent http://libevent.org/2.下载并安装libfastcommonhttps://github...

2019-07-23 16:28:32 550

转载 thymeleaf使用shiro标签 springboot2.0

原文作者:https://blog.csdn.net/zhuzhezhuzhe1在前台页面使用shiro的标签,springboot2.0,先添加依赖1、添加依赖<dependency> <groupId>com.github.theborakompanioni</groupId> <artifactId>thymeleaf...

2018-09-11 18:34:43 1471 2

转载 git update project 失败提示Couldn't save uncommitted changes.xxxunable to auto-detect email addressxxx

因为我在本机上修改了代码有没有提交的,更新代码的时候就提示了Couldn't save uncommitted changes网上找到一篇文章,打开.git目录下的config文件夹,在最后加入[user] email=your email name=your nameyour email 和your name可以随便写...

2018-08-29 21:46:06 983

转载 /dev/xvda1 内存占满了处理方法

原文:https://blog.csdn.net/echo_ae/article/details/79387767在EC2实例上建database时总是提示1006 can't create database 错误,上网到原因有2,一为权限不足,2为存储满了,我用的是root的账号,所以排除1,只能是空间不够了使用df -hl查看占用情况图是删除以后的发现/dev/xvda1 ...

2018-07-31 11:47:59 3771

翻译 ubuntu16.0.4安装nginx

原文:https://blog.csdn.net/u014374031/article/details/734415771. 安装依赖#升级sudo apt-get update# 解决依赖包openssl安装sudo apt-get install openssl libssl-dev# 解决依赖包pcre安装sudo apt-get install libpcre3...

2018-06-15 15:27:27 521

原创 文件上传java.io.FileNotFoundExceptionxxxx(文件名、目录名或卷标语法不正确。)

环境:springboot,jquery-file-upload最近有做到文件上传模块,我使用的是jquery-file-upload文件上传插件.在goole浏览器上上传没有问题,但是在ie上就提示java.io.FileNotFoundExceptionxxxx(文件名、目录名或卷标语法不正确。)于是在后台打印出pathString fileName=file.getOriginalFilen...

2018-05-21 10:40:34 3080

原创 python写入mysql报错Incorrect string value:XXX for column 'XXX' at row 1

在爬数据写入mysql的时候会报这个错误,偶尔又能正常写入在网上找到一篇文章:https://blog.csdn.net/hhtnan/article/details/76769264按照文中所述:是因为mysql不能识别4个字节的utf8编码的字符,抛出了异常,这应该也是问题的根源。☺、��、类似于这种4个字节,将对应字符类型换成将对应的数据类型改为utf8mb4类型于是修改该字段如下:设置成u...

2018-05-09 16:48:52 1199

转载 springboot mybatis dubbo zookeeper的简单使用idea打包项目

参考文章:http://www.r9it.com/20171018/springboot-dubbo.htmlhttp://blog.csdn.net/rchengzhi/article/details/78990543在这之前已经完成了dubbo和zookeeper的安装.并成功启动.windows参考:http://blog.csdn.net/cencfeng11/article/...

2018-03-20 10:27:52 438

转载 An incompatible version [1.2.12] of the APR based Apache Tomcat Native library is installed, while T

原文:https://www.cnblogs.com/levy-home/p/5676322.html到http://archive.apache.org/dist/tomcat/tomcat-connectors/native/binaries下选择对应的版本,把下载下来的bin/tcnative-1.dll放入windows/System32下...

2018-03-15 10:44:21 3323

转载 windows dubbo+zookeeper dubbo-admin控制台搭建

参考:http://blog.csdn.net/zsq520520/article/details/728303751.zookeeper安装下载zookeeper:http://mirror.bit.edu.cn/apache/zookeeper/解压后在conf中把zoo_sample.cfg重命名为zoo.cfg2.dubbo安装dubbo2.6.0之前的网址...

2018-03-13 15:50:30 266

转载 IDEA热部署,自动编译

1.settings-Compiler,勾选Build project automatically2.Ctrl+Shift+Alt+/ 选择Registry,勾选compiler.automake.allow.when.app.running

2018-03-01 09:27:10 1389

原创 Spring boot 中 Redis 的使用

参考:http://www.importnew.com/25786.html1.添加maven<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> <ve...

2018-03-01 09:10:09 694

转载 IDEA SpringBoot 热部署+html修改无需make自动刷新

原文:https://my.oschina.net/yejunxi/blog/845752maven  <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</a...

2018-02-26 11:16:23 7982

原创 python beautifulsoup 爬出智联

参照:http://blog.csdn.net/beyond_f/article/details/73974918智联上搜索职位的时候有很多很多参数,我也不想去一一探究它的含义,我的做法是打开智联按照自己的查询条件搜索,然后copy它的url,页数自己改.用到bs4,xlwt先安装好.步骤:1.给url添加headers,这里我定义了方法 def g def getHTML(s

2018-02-06 15:36:08 305

转载 aws ec2 tomcat部署

原文:https://www.cnblogs.com/dige1993/p/6395925.html?utm_source=itdadao&utm_medium=referral感谢上面这位博主的分享,我选的是ubuntu,一路顺利进行,ubuntu tomcat配置参照:http://mp.blog.csdn.net/postedit/79091928关键词:

2018-01-31 10:09:17 2941

原创 ssm+bootstrap-table+PageHelper分页

参考:http://www.cnblogs.com/landeanfen/p/4976838.htmlhttp://blog.csdn.net/wzj0808/article/details/59104035本来bootstrap-table就有服务端分页,这次介绍的是使用ssm框架结合PageHelper结合bootstrap-table来分页,PageHelper和bootst

2018-01-26 11:17:54 4209 1

原创 mybatis分页插件

参考:http://www.cnblogs.com/ljdblog/p/6725094.htmlhttp://blog.csdn.net/appleyk/article/details/77318175maven 引入.我用的是4.1.6 com.github.pagehelper pagehelper 4.1.6mybatis-config.xml中

2018-01-24 16:31:44 217

转载 idea不停的updating indices闪屏

转自:http://blog.csdn.net/dream0129/article/details/72773392其实解决方案特别简单。fild->Invalidate Caches / Restart.确定Open IntelliJ IDEASelect the File menuSelect the Invalidate Cac

2018-01-23 15:01:22 9198 2

转载 Tomcat 8 解决“At least one JAR was scanned for TLDs yet contained no TLDs”问题

1.linux:http://blog.csdn.net/yasi_xi/article/details/496426612.windowshttp://mov-webhobo.iteye.com/blog/1939655

2018-01-20 15:45:33 220

转载 IntelliJ IDEA2017.3激活

原文:http://blog.csdn.net/qq_27686779/article/details/78870816(1)下载破解补丁 把下载的破解补丁放在你的idea的安装目录下的bin的目录下面(如下图所示),本文示例为H:\idea\IntelliJ IDEA 2017.3 破解补丁下载:https://pan.baidu.com/s/1dGFssYt,密码:utby

2018-01-20 11:28:34 1698

原创 ubuntu16.0.4安装mysql5.7.20

1. ubuntu安装mysql命令:sudo apt-get install mysql-server mysql-client  其中会提示输入密码netstat -tap | grep mysql   看是否安装成功mysql -u root -p 输入密码登录mysql到这已经是安装成功了,接下来是配置远程连接,为了看下效果先建一个测试的database$show databases 查看

2018-01-18 15:25:58 245

原创 ubuntu部署tomcat

环境:ubuntu 16.0.4,jdk已经配置好.首先下载tomcat包  https://archive.apache.org/dist/tomcat/tomcat-8/我的:apache-tomcat-8.5.24.tar.gz解压.我解压到tomcat文件夹,解压后配置文件startup.sh 和shutdown.sh,两个文件都加入下面内容#set java enviro

2018-01-18 09:46:03 1484

原创 Mybatis 一对一

MybatisOneToOne 以人和身份证为例子,一人只能对应一张身份证,一张身份证一人使用,这就是一对一的关系.首先,在数据库中创建两个表,写入测试数据:tb_card:tb_person:(card_id foreign key)创建对应的bean:(get and set)public class Card i

2018-01-16 10:35:21 223

原创 mybatis的resultmap

项目中的查询一般不局限于单表操作,这时查询出来的数据接收的器皿就显得比较重要;例子:现在有三个表,对应的bean如下:class UserDetail{        private String username;private String name;private int dept_id;private int dormitory_id;private Str

2018-01-12 08:31:55 210

转载 线程的基础

转载:http://www.cnblogs.com/skywang12345/p/3479024.html                                            线程状态图说明:线程共包括以下5种状态。1. 新建状态(New)         : 线程对象被创建后,就进入了新建状态。例如,Thread thread = new

2018-01-11 17:07:31 140

转载 Thread 中start( ) 和run()的区别

Java多线程 Thread中start()和run()的区别 概要转载:http://www.cnblogs.com/skywang12345/p/3479083.html start() 和 run()的区别说明start() : 它的作用是启动一个新线程,新线程会执行相应的run()方法。start()不能被重复调用。run()   : run

2018-01-11 16:37:12 244

转载 List总结

http://www.cnblogs.com/skywang12345/p/3308900.html

2018-01-11 15:27:49 178

原创 简单爬虫

简单的爬虫爬糗百,需要的工具:BeautifulSoup,安装自己百度先从爬一页开始:首先,要伪装成浏览器,简单的是添加一个headers,我把它封装成一个函数:def getHTML(url):      headers = {'User-Agent': 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) A

2018-01-10 10:15:17 205

原创 python读取txt数据写入excel

在公司接到一个任务,从txt中抓取数据写入excel,txt格式固定,并且有多个txt文件先安装excel的读写支持,参考:https://www.cnblogs.com/cllovewxq/p/5363636.html就是下载xlrd和xlwt,进入该目录分别运行python setup.py install,这个程序只用到写入操作--xlwt思路:    逐个打开txt文件,抓

2018-01-08 09:23:10 8860

原创 rabbitmq 简单使用

rabbitmq在ubuntu中,安装教程参照http://blog.csdn.net/rickey17/article/details/72756766配置文件:spring(生产者)                                                        rabbitmq.

2017-12-22 15:30:54 221

原创 jedis简单使用

redis安装 ubuntu中安装redis,ubuntu本身就自带了redis的版本,如果想要别的版本的redis,也可以下载相应版本然后安装.我是在虚拟机中安装了ubuntu. 在 Ubuntu 系统安装 Redis 可以使用以下命令: sudo apt-get update sudo apt-get install redis-server 启动 Redis: redis-se

2017-11-15 10:16:29 245

原创 ActiveMq 简单使用

一. 生产者(消息发送者) 1.创建连接 private String userName = “”; private String password = “”; private String brokerURL = “tcp://127.0.0.1:61616”;

2017-11-08 12:03:42 311

原创 I/O 流

I/O字节流 FileInputStream FileOutputStream字符流 FileWriter FileReader 写入例子: String myContext = “aaaaaaaaaaa”; try { java.io.File file=new java.io.File(“D:/file/input.txt”

2017-11-07 14:09:45 160

原创 spring mvc 文件上传

spring文件上传jsp部分: controller: public void fileUpLoad(HttpServletRequest request,@RequestParam("file") MultipartFile file) throws Exception{ if(!fil

2017-10-26 14:32:29 253

转载 easy ui动态添加菜单

https://q.cnblogs.com/q/53610/

2017-10-09 12:16:35 1339

空空如也

空空如也

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

TA关注的人

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