自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

roy的专栏

爱生活 爱自由

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

原创 js的unicode处理与转换(多字节问题)

UnicodeUnicode是目前绝大多数程序使用的字符编码,定义也很简单,用一个码点(code point)映射一个字符。码点值的范围是从U+0000到U+10FFFF,可以表示超过110万个符号。字符集 字数 Unicode 编码 基本汉字 20902字 4E00-9FA5 基本汉字补充 74字 9FA6-9FEF 扩展A 6582字 3400-4DB5 扩展B 42711字 20000-2A6D6 扩展C 4

2020-05-09 20:42:49 1257

原创 ResponseEntity和@ResponseBody以及@ResponseStatus区别

ResponseEntity 表示整个HTTP响应:状态代码,标题和正文。因此,我们可以使用它来完全配置HTTP响应,它是一个对象,而@ResponseBody和@ResponseStatus是注解,适合于简单直接的场合。@ResponseBody一般与@Controller组合使用,用来返回JSON字符串:@Controller @ResponseBody而@ResponseStat...

2019-11-04 23:03:00 2021

转载 深入理解Spring MVC

原文地址

2017-10-19 17:02:01 273

原创 Spring配置mybatis

Spring配置mybatis<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http:

2017-08-23 20:34:40 347

原创 Spring配置三大数据库连接池

Spring配置三大数据库连接池c3p0/dbcp/druidspring-dao.xml中的配置 <context:property-override location="classpath:***.properties"/> <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" /> <

2017-08-23 20:29:43 522

转载 解决centos没有iptables的问题

解决Centos没有iptables的问题一、Centos 6版本解决办法:1.任意运行一条iptables防火墙规则配置命令:iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存:service iptables save 3.重启iptables服务:service iptables restart 二、Centos 7版本解决办法:1、停止并屏蔽firew

2017-08-02 21:45:35 1915

原创 数据库连接池-HikariCP-配置和使用

1. hikari.properties文件jdbcUrl=jdbc:mysql://localhost:3306/testusername=testpassword=123456maximumPoolSize=30minimumIdle=5connectionTestQuery=SELECT 1autoCommit=truedataSource.cachePrepStmts=true

2017-07-07 00:55:10 12952

转载 提高Eclipse启动速度的办法

提高Eclipse启动速度的办法Speed up your eclipse as a super fast IDE June 25, 2011 by eulerFollow these steps to speed up your eclipse as a super fast IDE , it works for 32 & 64 bit version eclipse/jdk on my win

2017-07-06 23:01:51 386

原创 Linux-Centos下搭建Git服务器

Linux Centos下搭建Git服务器1. 安装Gitexit[roy@localhost etc]$ sudo yum install -y gitLoaded plugins: fastestmirror, langpacksbase | 3.6 kB 00:00:0

2017-06-17 22:51:58 1031 1

原创 为Linux-Centos用户添加sudu权限

1. su到root用户,并进入/etc目录[roy@localhost etc]$ su -Password: [root@localhost ~]# [root@localhost ~]# cd /etc/[root@localhost etc]# ll sudo*-rw-r-----. 1 root root 1786 May 30 10:18 sudo.conf-r--r-----

2017-06-17 21:59:37 561

原创 Centos7安装MySQL

MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可; MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。Centos7默认安装mariadb,所以yum install -y mysql*时安装的就不是MySQL了。 那么如何实现安装MySQL而非Mariadb呢?卸载mariadb列出所有被安装的rpm

2017-06-12 08:52:41 467

转载 Centos7安装MariaDB

centos 安装 mariadb

2017-06-12 08:26:00 361

翻译 提高Html5性能的方法

1. 开发原则减少重绘----DOM操作,不要用js逐次更改style,而是直接修改className;CSS渐进式增强;尽可能用CSS处理悬停、点击和动画(transition)。2. 性能准则减少http请求次数----合并js,css,图片;CDN加速;避免空的src和href,使用JavaScript:; ;启用GZIP压缩;避免CSS表达式;不要重组dom,一次性代码插入

2017-05-10 22:08:37 285

转载 Maven常用命令

maven常用命令 Maven库:http://repo2.maven.org/maven2/Maven依赖查询:http://mvnrepository.com/Maven常用命令: 1. 创建Maven的普通java项目: mvn archetype:create -DgroupId=packageName -DartifactId=projectName

2017-05-09 23:09:10 215

原创 SpringMVC web.xml配置

web.xml <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <servlet> <servlet-name>spring</ser

2017-05-09 22:13:31 297

原创 pom.xml 常用依赖包

<properties> <spring.version>4.3.8.RELEASE</spring.version> <hibernate.version>4.3.1.Final</hibernate.version> <mybatis.version>3.2.8</mybatis.version> <mybatis.spring

2017-05-09 22:05:33 929

转载 原码, 反码, 补码的基础概念和计算方法

原码, 反码, 补码的基础概念和计算方法在探求为何机器要使用补码之前, 让我们先了解原码, 反码和补码的概念.对于一个数, 计算机要使用一定的编码方式进行存储. 原码, 反码, 补码是机器存储一个具体数字的编码方式.1. 原码原码就是符号位加上真值的绝对值, 即用第一位表示符号, 其余位表示值. 比如如果是8位二进制:[+1]原 = 0000 0001[-1]原 = 1000 0001第一位是符号

2017-04-27 16:57:55 2157

转载 Difference between $.extend and $.fn.extend

1. jQuery.extend(object);它是为jQuery类添加类方法,可以理解为添加静态方法。如:a.jQuery.extend({   min: function(a, b) { return a < b ? a : b; },   max: function(a, b) { return a > b ? a : b; } });jQuery.min(2,3); // 2

2017-04-24 15:37:08 242

原创 给MySQL添加root用户的远程权限

#mysql -uroot -p123456>use mysql;>select host,user,password from user;>create user 'root'@'%' identified by '123456';>grant all on *.* to root@'%' identified by '123456';>exit

2017-04-24 11:04:56 6667

原创 Install nodejs on Linux Centos6.5

1. 下载nodejs(二进制包)访问nodejs官网,找到下载页面 https://nodejs.org/en/download/ 找到Linux Binaries(x86/x64), 得到64-bit的下载地址https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz使用wget下载:[hadoop@hadoop1 ~]$ wge

2017-04-24 10:32:55 854

转载 Mybatis与Hibernate的详细对比

作为一位优秀的程序员,只知道一种ORM框架是远远不够的。在开发项目之前,架构的技术选型对于项目是否成功起到至关重要的作用。我们不仅要了解同类型框架的原理以及技术实现,还要深入的理解各自的优缺点,以便我们能够在项目的实施过程中面对的困难更少。所以这篇博文我们要将Mybatis和Hibernate进行一下深入的对比,加深我们对持久化框架的理解。1. 简介Hibernate:Hibernate是当前最流行

2017-04-07 18:24:54 230

原创 Maven 配置阿里云仓库

打开mvn安装目录下的settings.xml文件 比如:apache-maven-3.3.9\conf\settings.xml文件新增阿里云的mirror: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexu

2017-04-06 16:51:10 323

转载 vmware Network 原理

转自 http://blog.csdn.net/adultf/article/details/7290999

2017-04-05 23:03:07 998

原创 如何访问虚拟机中的Web服务

需求:1、在虚拟机Vmware中安装了CentOS6.5,虚拟机使用NAT的方式; 2、在CentOS中安装了APACHE 并且使用 http://192.168.237.128可以正常访问; 3、想在其他windows机器上访问该虚拟机的web服务。解决办法:1. 开放Linux防火墙,允许80端口的访问1)检查防火墙[root@hadoop1 sbin]# iptables --listC

2017-04-05 11:36:19 2505

转载 Centos设置开机启动Apache和Mysql

Centos设置开机启动Apache和Mysql[总结]1、前言  最近学习搭建wordpress,需要用到apahce和mysql。我是下载源代码进行安装的,安装在/url/local目录下,每次开机都需要手动启动,有点麻烦。如是想设置开机启动,从网上查了一下,如何设置,总结一下,方便以后使用。2、设置方法  有两种方法,一种是修改配置文件,一种是通过添加启动项。

2017-04-05 10:39:19 294

原创 MySQL5.5 log-config

1)open my.ini,找到[mysqld],在空白处编辑如下[mysqld]# The TCP/IP Port the MySQL Server will listen onport=3306log="d:/mysql.log"log-error="d:/mysql-err.log"log-update="d:/mysql-update.log"

2017-04-01 15:15:57 346

原创 Centos6.5----shutdown Filewall Service

stop :service iptables stopstop permanently:chkconfig iptables offcheck status:service iptables status

2017-03-28 17:33:46 363

原创 Install Mysql on Centos6.5

1. install Mysql by yum# yum install mysql mysql-server mysql-devel -y2. check if mysqld is generated, and set autorun# chkconfig --list |grep mysql#chkconfig mysqld onnum

2017-03-28 15:25:23 209

原创 Maven pom.xml example(spring,struts,mybatis,mysql,postgresql)

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  4.0.0      roy    springstudy    0.0.1-SNAPSHOT    roy  springstudy-dao  0.0.1-SNAPSHOT  springstudy-dao  http://maven.apa

2017-01-14 14:04:12 1299

原创 Maven精华文章收录

推荐一些比较好的帖子:基于Eclipse Maven的Spring4/Spring-MVC/Hibernate4整合之一 : Maven的pom.xml环境配置及注意方面使用Maven创建Web应用程序项目

2017-01-14 11:03:47 253

原创 Nodejs + MySQL ReConnect

nodejs + mysql 的断线重连实现

2016-11-25 16:13:52 928

转载 winform 图片放大缩小

using System.Collections.Generic;  using System.ComponentModel;  using System.Data;  using System.Drawing;  using System.Linq;  using System.Text;  using System.Windows.Forms;  using Sys

2016-11-15 10:27:45 4449

转载 AngularJS 使用$sce控制代码安全检查

由于浏览器都有同源加载策略,不能加载不同域下的文件、也不能使用不合要求的协议比如file进行访问。在angularJs中为了避免安全漏洞,一些ng-src或者ng-include都会进行安全校验,因此常常会遇到一个iframe中的ng-src无法使用。[转载自http://www.cnblogs.com/xing901022/p/5100551.html]什么是SCES

2016-11-07 16:49:32 294

转载 AnjularJS中$scope和$rootScope的区别小结

一句话总结:     $rootScope针对全局的作用域生效     $scope只针对当前的controller作用域生效http://www.jb51.net/article/92814.htm

2016-11-07 16:46:43 292

转载 Android程序调试错误: Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE

第一步:先把原来已经存在的相同包名的APK删除,如:adb shell rm system/app/OutdoorMeter/OutdoorMeter.apk第二步:将data/data/目录下该应用的包名的目录删除掉,如:adb shell rm -rf data/data/com.runbo.outdoormeter/第三步:重启Android手机 adb reboot

2016-11-04 14:51:23 448

转载 Android调试报错: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。

[2016-11-04 13:13:38 - Android SDK] Error when loading the SDK:Error: Error parsing C:\Users\admin\AppData\Local\Android\android-sdk\system-images\android-23\android-wear\armeabi-v7a\devices.xmlcv

2016-11-04 14:33:38 799

转载 Android5.1和Android6.0定时编译项目方法

#转载自 http://blog.csdn.net/lyjit/article/details/51312367为了不占用开发的时间,我们通常会选择晚上下班后让项目自动编译,那么如何定时编译项目呢。Android5.1和Android6.0定时编译项目的方法是一样的,下面就我本地的C100H_V20(Android5.1)项目工程为例:首先总体看一下工程下面都有那些文件

2016-11-04 14:20:58 640

转载 Android5 和Android6.0 的区别

一、Android51、android 5.0 Hello 5.05.0的版本号就能告诉我们,这是一个大的升级版本。2、基于Linux内核3.0Linux刚刚发布Linux 3.0内核没多久,后来又更新到了3.0.1 。3、通过Android Market购买音乐谷歌已经试水性质的推出了Google Music Beta ,允许上传2万首音乐到Goo

2016-11-04 14:17:39 6187

转载 [Android SDK] Call requires API level 23 (current min is 14)问题的解决

Either check for target >=23 or simply add below line above your method@TargetApi(Build.VERSION_CODES.M)For example, If you are checking for storage permissions, then you can refer to this funct

2016-11-04 14:12:24 7420

转载 安卓开发环境搭建

一、Eclipse安装, Android开发者网站上去下载ADT 工具和android sdk文件。二、eclipse离线安装ADT插件1.下载ADT插件的zip文件(不要解压):ADT-23.0.6.zip2.启动Eclipse,然后在菜单栏上选择 Help > Install New Software3.单击 Add 按钮,在右上角4.在"Add Repos

2016-11-04 13:10:34 310

《神奇的Vue.js.pdf》

The Majesty Of Vue.js; 前端框架必读,高清原版,值得拥有

2017-12-10

Learning React.pdf

学习React,高清-原版,前端框架必读!!!!!!!!!

2017-12-10

深入浅出ES6

深入浅出ES6-中文-高清,适合有JavaScript基础和Java基础的同学

2017-12-10

深入理解ES6 完整版

深入理解ES6-高清翻译版,适合有JavaScript基础,最好有Java基础。

2017-12-10

Pro JavaScript Design Patterns

As a web developer, you’ll already know that JavaScript™ is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can make it more powerful, more efficient, and easier to work with alone or as part of a team., With Pro JavaScript Design Patterns, you’ll start with the basics of object-oriented programming in JavaScript applicable to design patterns, including making JavaScript more expressive, inheritance, encapsulation, information hiding, and more. With that covered, you can kick-start your JavaScript development in the second part of the book, where you’ll find detail on how to implement and take advantage of several design patterns in JavaScript, including composites, decorators, façades, adapters, and many more., Each chapter is packed with real-world examples of how the design patterns are best used and expert advice on writing better code, as well as what to watch out for. Along the way you’ll discover how to create your own libraries and APIs for even more efficient coding., * Master the basics of object-oriented programming in JavaScript, as they apply to design patterns., * Apply design patterns to your kick-start your JavaScript development., * Work through several real-world examples.

2017-12-10

企信通 cmpp短信API全集.rar

包括多个平台下的api,有HPUX Platform,IBM AIX Platform,Linux Platform, SunOS, windows

2009-09-13

数据业务管理平台接口规范-ISMG分册-1.5.1(报批稿).doc

本接口规范规定了中国移动通信集团公司移动数据业务管理平台(DSMP)短信部分涉及到的接口与协议规范,详细定义了DSMP与业务网关之间的接口/协议,并给出ISMG与DSMP连接的时序示意图以及接口命令举例。本接口规范是集团公司进行DSMP与ISMG进行互联的依据。

2009-09-13

中国移动数据业务管理平台接口规范-MMSC分册.doc

本规范规定了中国移动DSMP平台与业务网关MMSC之间的接口,以保证彩信业务管理、业务控制的实现。

2009-09-13

空空如也

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

TA关注的人

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