自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

二枫的代码小窝

没有什么描述啦♪(^∇^*)

  • 博客(33)
  • 资源 (42)
  • 收藏
  • 关注

原创 记一次mysql数据库主从复制

主从同步大致流程:1. 修改master数据库配置文件[mysqld]## 设置 server_id,一般设置为 IP的后一段或后两段server-id=1## 复制过滤:需要备份的数据库,输出 binlogbinlog-do-db=zj_bigdata_fineinvoice## 复制过滤:不需要备份的数据库,不输出(mysql 库一般不同步)## binlog-ignore-db=mysql## 开启二进制日志功能,可以随便取,最好有含义log-bin=mysql

2020-05-21 20:10:42 182

原创 记一次处理微服务status为Down的过程

现象:打开health页面:比如http://192.168.100.15:32190/health看到问题所在:redis:{status:"DOWN", error:"org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.Je...

2020-05-21 18:10:16 1937 1

原创 记一个sharding-jdbc将null转换为0的坑

现象为:之前获取对象后,如果对象的属性为null,获取到的值就是null。但是,使用了sharding-jdbc后,如果为null的属性类型为Integer或者Long等等,获取到的值就变成了0。String等类型不受影响。这个问题是在使用了sharding-jdbc后出现的。Sharding-jdbc的版本为4.1.0。对整个查询流程进行debug后,发现在当获取的结果为null时,会被org.apache.shardingsphere.shardingjdbc.jdbc.core..

2020-05-21 18:01:35 1443 1

原创 阿里云的ubuntu系统上重启Tomcat的Crontab定时任务

因为tomcat总是莫名的挂掉,所以打算写一个每天定时重启的脚本。一、创建重启脚本。 创建一个restart.sh文件,输入以下内容。 #!/bin/sh . /etc/profile pid=`ps aux | grep tomcat | grep -v grep | grep -v retomcat | awk '{print $2}'` echo $pid if [ -n "$pi

2017-11-28 18:15:58 617

原创 设置Grails中的domain的字段默认是否允许为空

在grails-app/conf/Config.groovy中加入以下配置,可以设置使用整个GORM是否默认允许domain的字段为空。//设置gorm默认允许字段为空grails.gorm.default.constraints = {    '*'(nullable: true)}//设置gorm默认允许字段不能为空grails.gorm.default.con

2017-09-20 11:30:59 440

原创 angularJS中cookies的使用

$cookies提供浏览器cookies的读/写访问操作。支持1.4及以上版本。需要引入ngCookies模块。angular.cookies[.min].js方法:get(key);根据key返回该cookies值。key:搜索cookies的id。getObject(key);根据key返回该cookies的反序列化值。key:搜索cookies的id。getAll();返回所有cookie

2017-07-26 15:39:07 2480

原创 angularjs学习笔记

angularJS笔记

2017-07-21 15:20:27 625

原创 linux下vi命令大全

进入vi的命令vi filename :打开或新建文件,并将光标置于第一行首vi +n filename :打开文件,并将光标置于第n行首vi + filename :打开文件,并将光标置于最后一行首vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复f

2017-05-18 17:57:14 316

原创 linux chown 和 chgrp 指令

chown  改变属主chogrp  改变所在组比如文件 aa-rwxrwxr-x 1 root root 1260 Apr 26 14:05 aa[root@]#chown erfeng aa文件aa就变成了  -rwxrwxr-x 1erfeng root 1260 Apr 26 14:05 aa[root@]#c

2016-08-23 17:27:14 341

原创 linux init 指令

0:停机    1:单用户形式,只root进行维护    2:多用户,不能使用net file system    3:完全多用户    5:图形化    4:安全模式    6:重启    其实,可以通过查看/etc/rc.d/中的rc*.d的文件来对比理解,不同的目录中包含的命令是不同的    init 0,对应的系统会运行,/e

2016-05-16 18:31:17 390

原创 linux scp指令

名称:cp使用权限:所有使用者使用方式:cp [options] source destcp [options] source... directory说明:将一个档案拷贝至另一档案,或将数个档案拷贝至另一目录。把计-a 尽可能将档案状态、权限等资料都照原状予以复制。-r 若 source 中含有目录名,则将目录下之档案亦皆依序拷贝至

2016-04-06 14:23:42 483

原创 愚人节整蛊,网页倾斜代码

body{ -webkit-transform: rotate(-10deg);}倾斜角度可变吓的我屏幕都歪了

2016-04-01 11:45:47 3340 1

原创 java导出txt

name = URLEncoder.encode(name,"utf-8") //解决文件名无法显示中文response.setContentType('text/plain')response.setHeader('Content-Disposition', 'Attachment;Filename="' + name + '.txt"')BufferedOutputStream buf

2016-03-29 17:58:18 597

原创 js跨域访问

js不同主域跨域;  前提,www.a.com下a.html,a.html内iframe调用了www.b.com下的b.html,b.html下iframe调用了www.a.com下的c.html  b.html是不无法直接访问a.html的对象,因为涉及到跨域,但可以访问parent,同样c.html的parent可以访问b.html。c.html和a.html同域,是可以访问a

2016-03-14 18:05:00 297

原创 require.js学习笔记2

require.js学习笔记1——传送门>>>>>>>

2016-03-02 11:41:17 417

原创 require.js学习笔记1

版本:require.js 2.1.11

2016-03-01 17:27:21 502

原创 apache配置ssl证书

在这里,我们需要使用apache2.4以上的版本。因为apache2.2版本缺少mod_ssl.so文件(不排除博主所下版本不对的原因)友情下载地址:x86版本:http://download.csdn.net/detail/a332708815/9390294x64版本:http://download.csdn.net/detail/a332708815/9390295

2016-01-05 13:36:22 4396

原创 apache做端口转发

1. 软件准备以Apache2.2.21版本为例Apache 官方下载地址:httpd-2.2.21-win32-x86-no_ssl.msi2. 开始安装双击httpd-2.2.21-win32-x86-no_ssl.msi开始安装。出现安装欢迎界面。图1 欢迎界面直接点“Next”继续,出现授权协议。图2 授权协议选择

2015-12-31 13:28:41 19789

原创 数字证书 从零了解

CSR  证书签名请求

2015-09-28 10:45:21 510

原创 grails 事务 Transactional

Transactional

2015-09-15 17:13:45 3671

原创 jQuery 清除div内容

showResult">11111111111111$("#showResult").empty();

2015-09-09 15:14:42 867

原创 grails 国际化

g标签 : controller中写法 : def msg = message(code:"my.localized.content")

2015-09-01 13:59:13 395

原创 Navicat导出导入数据库

2015-08-20 16:35:24 505

原创 grails g:formRemote 与 ajax 对比

g:formRemote name="from_form" url="[namespace:'admin',controller:'cert', action:'revoke']" onSuccess="window.location.reload()"> class="btn" data-dismiss="modal" aria-hidden="true">取消 g:hidde

2015-08-19 17:04:20 770

原创 从SVN上down下来的maven项目,无法下载jar包

cmd中执行命令:mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.5 -DdownloadSources=true注意,必须进入到工程目录中包含pom.xml的目录才可以执行,而且确保你安装了maven。

2015-07-23 16:56:27 1620

原创 jquery设置元素的readonly和disabled的写法

Jquery的api中提供了对元素应用disabled和readonly属性的方法,在这里记录下。如下:1.readonly$('input').attr("readonly",true)//将input元素设置为readonly    $('input').attr("readonly",false)//去除input元素的readonly属性 $('input').at

2015-07-16 15:59:50 453

原创 gitlab生成SSH密钥过程

1.查看是否已经有了ssh密钥:cd ~/.ssh如果没有密钥则不会有此文件夹,有则备份删除2.生存密钥:$ ssh-keygen -t rsa -C “你的邮箱”按3个回车,密码为空。Your identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been

2015-07-02 16:48:56 6415

原创 ajax和grails后台的搭配

前台ajax写法后台grails写法

2015-06-19 13:06:05 767

原创 Axure实现随意折叠和展开

1.拖动四个Rectangle,命名并上色2.设置menu1,menu2的onclick方法——>Show/Hide——>Push/Pull Widgets3.设置content1,content2为隐藏(Hidden)4.改为重叠5. 效果如图

2015-06-11 16:47:58 2671

原创 省市二级联动的js

area.jsvar province = document.getElementById('province');var city = document.getElementById('city');//省份 var provinceArr = [];provinceArr[0] = ['北京市'];provinceArr[1] = ['天津市'];prov

2015-06-08 16:00:09 499

原创 grails的save方法总是没有成功save数据

举个例子org —— static hasMany = [staffs: Staff] 而org中又有法人(类型为Staff)这个属性 staff —— static belongsTo = [org: Org]因为org是staff的外键,所以必须先save() org,再save() staffOrg org = new Org() //org的各种信息 org.save() Sta

2015-06-08 11:39:40 1034

转载 查看 MySQL 数据库中每个表占用的空间大小

第一种:如果想知道MySQL数据库中每个表占用的空间、表记录的行数的话,可以打开MySQL的 information_schema 数据库。在该库中有一个 TABLES 表,这个表主要字段分别是:TABLE_SCHEMA : 数据库名TABLE_NAME:表名ENGINE:所使用的存储引擎TABLES_ROWS:记录数DATA_LENGTH:数据大小INDEX_LENG

2015-05-21 10:46:50 404

转载 jquery设置radio

1.获取选中值,三种方法都可以:$('input:radio:checked').val();$("input[type='radio']:checked").val();$("input[name='rd']:checked").val();2.设置第一个Radio为选中值:$('input:radio:first').attr('checked', 'c

2015-05-19 18:07:30 688

dubbo-2.8.4.jar

dubbo-2.8.4.jar,自行通过编译产生的。github地址https://github.com/dangdangdotcom/dubbox/tree/dubbox-2.8.4

2020-02-24

angular-drag.zip

angular-drag.zip angular-drag.zip angular-drag.zip

2017-11-07

jdk1.6.0 64位

jdk1.6.0_31_64位, jdk1.6.0_31_64位, jdk1.6.0_31_64位, jdk1.6.0_31_64位, jdk1.6.0_31_64位, jdk1.6.0_31_64位

2017-09-04

检测微信是否被好友删除或拉黑

检测微信是否被好友删除或拉黑 实用工具

2017-01-04

PDFRenderer.jar + demo

PDFRenderer.jar + demo PDFRenderer.jar + demo

2016-05-02

activate-power-mode

activate-power-mode,atom的一个炫酷震动插件,windows,详细安装过程参看 http://blog.csdn.net/zhangjikuan/article/details/50157533

2016-03-29

jdk1.7 64位 免安装版

jdk1.7 64位 免安装版

2016-03-17

jdk1.7 32位 免安装版

jdk1.7 32位 免安装版 jdk1.7 32位 免安装版

2016-03-17

国密sm4算法

国密sm4算法

2016-03-04

underscore-min.js 1.8.3

underscore-min.js

2016-03-04

underscore.js 1.8.2

underscore.js underscore.js underscore.js

2016-03-04

handlebars.js v4.0.5

handlebars.js

2016-03-04

backbone-localStorage-min.js 1.1.16

backbone-localStorage-min.js 1.1.16

2016-03-04

backbone.js 1.1.2

backbone.js 1.1.2

2016-03-04

java 验证统一社会信用代码

java ,验证统一社会信用代码

2016-01-11

apache2.4 X64版本

apache2.4 X64版本 可做端口转发,可配置ssl

2016-01-05

apache2.4 X86版本

apache2.4 X86版本 可做端口转发,可配置ssl

2016-01-05

apache2.0免安装版

apache2.0免安装绿色解压版rar

2015-12-31

Learn iOS 8 App Development%2C 2nd Edition-Apress%282014%29.pdf

Learn iOS 8 App Development is both a rapid tutorial and a useful reference. You'll quickly get up to speed with Swift, Cocoa Touch, and the iOS 8 SDK. It's an all-in-one getting started guide to building useful apps. You'll learn best practices that ensure your code will be efficient and perform well, earning positive reviews on the iTunes App Store, and driving better search results and more revenue. The iOS 8 SDK offers powerful new features, and this book is the fastest path to mastering them—and the rest of the iOS SDK —for programmers with some experience who are new to iPhone and iPad app development. Many books introduce the iOS SDK, but few explain how to develop apps optimally and soundly. This book teaches both core Swift language concepts and how to exploit design patterns and logic with the iOS SDK, based on Swift and the Cocoa Touch framework. Why spend months or years discovering the best ways to design and code iPhone and iPad apps when this book will show you how to do things the right way from the start? Get an accelerated treatment of the core fundamentals of Swift. Develop your first app using Xcode's advanced interface design tools.Build your first iPhone app using the code that you're given as you walk through this book. Finally, debug and distribute your first app on Apple's iTunes App Store. Learn how to create apps for any model of iPhone, the iPod Touch, the iPad, or build universal apps that run on all of them. After reading this book, you'll be creating professional quality apps, ready to upload to the app store, making you the prestige and the money you seek!

2015-09-03

sigar-1.6.4

Hyperic-Sigar是一个收集系统各项底层信息的工具集.他有如下特点: 1. 收集信息全面 收集CPU,MEM,NETWORK,PROCESS,IOSTAT等 使用Sigar,你完全可以模仿出cpuinfo,meminfo,top,free,ifconfig,ipconfig,netstat,route,df,du,ps,ls等多种unix平台和windows平台的指令. 2.跨平台,支持多数平台 支持的平台包括:windows系列(32系列,IA64系列,AMD64系列),linux系列,freeBsd系列,HPUnix 系列,Sun solaris/Sparc/Sparc64系列,macOs系列,AIX系列等 3.提供的API接口全面 sigar本身由C语言开发而成,提供了丰富的API接口,包括:JAVA,.NET,PERL,PHP,PYTHON,RUBY.Sigar.jar包是通过本地方法来调用操作系统API来获取系统相关数据。Windows操作系统下Sigar.jar依赖sigar-amd64-winnt.dll或sigar-x86-winnt.dll,linux 操作系统下则依赖libsigar-amd64-linux.so或libsigar-x86-linux.so……而Sigar.jar还依赖于jug-asl-2.0.0.jar、log4j-1.2.14.jar、Junit.jar

2015-08-31

keytool-advanced-v2.01.zip

keytool-advanced-v2.01.zip keytool密钥和证书管理工具

2015-08-31

KeyTool_GUI_1.6.zip

KeyTool_GUI_1.6.zip

2015-08-31

原型设计工具

原型设计工具AxureRP-Pro-Setup.rar

2015-08-19

pdf转word工具

PDFtoWord.zip pdf转word

2015-08-19

commons-lang-2.6.jar

commons-lang-2.6.jar

2015-07-27

bcprov-jdk15on-152.jar

类似org.bouncycastle.jce.provider等的jar包

2015-07-27

javabase64-1.3.1.jar

Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一 javabase64-1.3.1.jar

2015-07-16

java quartz定时任务项目+jar包.zip

java quartz定时任务项目+jar包.zip

2015-07-10

eclipse反编译工具+使用教程.zip

eclipse反编译工具+使用教程.zip

2015-07-10

Axure实现随意折叠和展开

Axure实现随意折叠和展开,类似jQuery 效果 - 淡入淡出等等

2015-06-11

JavaScript语言精粹[英文原版]

JavaScript语言精粹[英文原版]OReilly.JavaScript.The.Good.Parts.chm

2015-06-04

JavaScript语言精粹

JavaScript语言精粹(JavaScript.The.Good.Parts).pdf

2015-06-04

eclipse个人配色方案及教程新.zip

全新个人搭配的黑色主题,颜色偏向冷色系,不伤眼;附带完全教程

2015-05-16

eclipse个人配色方案及教程.zip

个人搭配的黑色主题,颜色偏向冷色系,不伤眼

2015-05-16

Grails基础教程

Grails基础教程,很好的入门书籍

2015-04-08

Grails_2.3官方手册.pdf中文版

2.3新特征 1.1 依赖管理的提升 1.2 数据绑定 1.3 绑定请求正文给命令对象 1.4 域类作为命令对象 1.5 分叉执行 1.6 测试运行值守进程 1.7 服务器端的REST改进 1.8 全新的脚手架插件 1.9 URL映射指定重向 1.10 支持异步编程

2015-04-08

空空如也

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

TA关注的人

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