- Spring笔记(一)
m0_75227909
spring笔记java
一、了解Spring1.Spring概述Spring是分层的JavaSE/EE应用full-stack轻量级开源框架,以IOC(InverseOfControl:反转控制)和AOP(AspectOrientedProgramming:面向切面编程)为内核,提供了展现层SpringMVC和持久层SpringJDBC以及业务层事务管理等众多的企业级应用技术,还能整合开源世界众多著名的第三方框架和类库,
- 转码小白的Spring笔记整理
qq_42766587
springintellijideajava
文章目录Springspring框架的概述以及spring中基于XML的IOC配置Spring是什么Spring的优势Spring简单使用Spring的依赖注入spring中基于注解的IOC和ioc的案例各个实现类的注解配置用于创建对象的注解用于注入数据的注解用于改变作用范围的和生命周期相关(了解)依赖xml文件的注解配置配置类的注解配置spring中的aop和基于XML以及注解的AOPSprin
- spring笔记-DataBinder
兴浩
参考:spring笔记-PropertyAccessorspring笔记-PropertyValue1.使用方法@TestpublicvoidtestBindingWithDefaultConversionNoErrors()throwsBindException{TestBeanrod=newTestBean();DataBinderbinder=newDataBinder(rod,"perso
- spring笔记
Juntech
Spring框架两大核心机制(IoC、AOP)IoC(控制反转)/DI(依赖注入)AOP(面向切面编程)Spring是一个企业级开发框架,是软件设计层面的框架,优势在于可以将应用程序进行分层,开发者可以自主选择组件。MVC:Struts2、SpringMVCORMapping:Hibernate、MyBatis、SpringData如何使用IoC创建Maven工程,pom.xml添加依赖4.0.0
- 阿里P8传授的80K+星的Spring笔记助我修行Spring Security 怎么学?为什么一定需要系统学习?
三星老猿
最近总是有很多朋友私底下问我,“猿哥,我学这个以后能月薪过万吗?”我跟你这样说吧,SpringSecurity月薪过万是咱这行的最低标准,另外咱们这个行业就是靠能力吃饭,你有多大能力你就能拿多大钱,懂了吧!所以嘛,千万不要做思想上的巨人,行动人的侏儒!那接下来我将重点聊聊我是如何学习的,希望给你以借鉴!大家看完觉得还不错的话,别忘了给个点赞哦!1.系统性学习1.1为什么要系统性学习为什么一定要系统
- spring笔记-DeferredImportSelector
兴浩
1.概念有2个特点继承该接口的ImportSelector会在最后执行如果定义了1一个以上的DeferredImportSelector则使用Order接口来进行排序/***Avariationof{@linkImportSelector}thatrunsafterall{@code@Configuration}beans*havebeenprocessed.Thistypeofselectorc
- Spring笔记
山有木兮^木有枝
SpringBootspringjavamvc
1、Spring介绍(1)、Spring是一个主流的JavaWeb开发框架(2)、Spring为简化企业级开发而生,使用Spring开发可以将Bean对象,Dao组件对象,Service组件对象等交给Spring容器来管理,这样使得很多复杂的代码在Spring中开发却变得非常的优雅和简洁,有效的降低代码的耦合度,极大的方便项目的后期维护、升级和扩展。(3)、以IOC(InverseofContro
- Spring笔记
忆白@
笔记spring后端笔记
Spring1、Spring简介1.1、Spring概述官网地址:https://spring.io/Spring是最受欢迎的企业级Java应用程序开发框架,数以百万的来自世界各地的开发人员使用Spring框架来创建性能好、易于测试、可重用的代码。Spring框架是一个开源的Java平台,它最初是由RodJohnson编写的,并且于2003年6月首次在Apache2.0许可下发布。Spring是轻
- (Spring笔记)SpringMVC请求转发下后端携带数据返回前端——默认形参类型
电竞丶小松哥
Spring笔记springmvc请求转发重定向sessionel
目录一、前言二、前端(1)index.jsp(2)main.jsp三、后端(1)User实体(2)接口四、测试(1)使用请求转发(2)使用重定向五、总结一、前言当后端执行请求转发跳转的同时,需要通过接口将数据发送到前端页面。以下类型只要写在方法参数中就可以使用了。(1)HttpServletRequest对象(2)HttpServletResponse对象(3)HttpSession对象(4)Mo
- Spring笔记(3):SpringMVC数据响应与接收含文件上传
Cake_C
Spring学习笔记springjavamvc
SpringMVC数据返回可以是页面跳转也可以是数据对象页面跳转:返回字符串,会与视图服务器设定的前后缀拼接返回给客户端定位资源上节代码中没有配置视图服务器在配置Controller类的RequestMapping后,需要注意会偷偷在前面再添加该RequestMapping的路由页面跳转:ModelAndView对象packagecom.CakeCN.controller;importorg.sp
- Spring笔记(2) - AOP编程
Quantum_Wu
java笔记Spring笔记javaspringaop设计模式
Spring笔记(2)-AOP编程作者:Wyt系列文章目录Spring笔记(1)-工厂Spring笔记(2)-AOP编程Spring笔记(3)-持久层整合Spring笔记(4)-MVC框架整合Spring笔记(5)-注解编程入门Spring笔记(6)-注解编程基础文章目录Spring笔记(2)-AOP编程系列文章目录前言正文1.背景1.1为什么需要代理模式传统开发中存在的问题2.设计模式之代理模式
- spring笔记下(AOP、事务管理)
白豆五
Java笔记springjava后端
一、AOP概述1.AOP介绍AOP(AspectOrientedProgramming):面向切面编程(或者面向特定方法编程),一种编程范式,指导开发者如何组织程序结构,是oop的延续。(OOP面向对象编程)AOP作用:在不惊动原始设计的基础上为其进行功能增强(简单的说就是在不改变方法源代码的基础上对方法进行功能增强)。Spring理念:无入侵式/无侵入式。(没有修改源代码,可插拔)AOP应用场景
- Spring笔记(四)(黑马)(web层解决方案-SpringMVC)
MeiMing_104
spring笔记java
01、SpringMVC简介1.1SpringMVC概述SpringMVC是一个基于Spring开发的MVC轻量级框架,Spring3.0后发布的组件,SpringMVC和Spring可以无缝整合,使用DispatcherServlet作为前端控制器,且内部提供了处理器映射器、处理器适配器、视图解析器等组件,可以简化JavaBean封装,Json转化、文件上传等操作。用户请求–>SpringMVC
- Spring笔记(一)(黑马)(Ioc基础容器)
MeiMing_104
Springspring笔记java
01、传统Javaweb开发的困惑1.1传统Javaweb开发困惑及解决方案问题一:层与层之间紧密耦合在了一起,接口与具体实现紧密耦合在了一起解决思路:程序代码中不要手动new对象,第三方根据要求为程序提供需要的Bean对象。问题二:通用的事务功能耦合在业务代码中,通用的日志功能耦合在业务代码中解决思路:程序代码中不要手动new对象,第三方根据要求为程序提供需要的Bean对象的代理对象。02、Io
- Spring笔记(二)(黑马)(AOP面向切面编程)
MeiMing_104
Springspring笔记java
01、AOP简介1.1AOP的概念AOP,AspectOrientedProgramming,面向切面编程,是对面向对象编程OOP的升华。OOP是纵向对一个事物的抽象,一个对象包括静态的属性信息,包括动态的方法信息等。而AOP是横向的对不同事物的抽象,属性与属性、方法与方法、对象与对象都可以组成一个切面,而用这种思维去设计编程的方式叫做面向切面编程1.2AOP思想的实现方案动态代理技术,在运行期间
- Spring笔记(三)(Spring整合web环境)
MeiMing_104
Springspring笔记java
01、Spring整合web环境1.1Javaweb三大组件及环境特点在Java语言范畴内,web层框架都是基于Javaweb基础组件完成的,所以有必要复习一下Javaweb组件的特点组件作用特点Servlet服务端小程序,负责接收客户端请求并作出响应的单例对象,默认第一次访问创建,可以通过配置指定服务器启动就创建,Servlet创建完毕会执行初始化init方法。每个Servlet有一个servi
- spring笔记-Autowired注解实现
兴浩
了解Autowired注解,是为了了解自定义注解的实现1.InjectedElement1.1AutowiredFieldElement表示被Autowired注解标记的字段1.2AutowiredMethodElement表示被Autowired注解标记的方法表示被注入的元素,其包含2个子类InjectedElement代码实例1:如下代码,testBean就表示一个被注入的元素publiccl
- spring笔记01
MrGzj1999
[toc]Spring学习01:控制反转[IOC]与依赖注入[DI]程序的耦合和解耦耦合:程序间的依赖关系.在开发中,应该做到解决编译期依赖,即编译期不依赖,运行时才依赖.解耦的思路:使用反射来创建对象,而避免使用new关键字,并通过读取配置文件来获取要创建的对象全限定类名.下面以两个例子来说明如何解耦.解耦实例1:JDBC驱动注册JDBC操作中注册驱动时,我们不使用DriverManager的r
- spring笔记-ConfigurationClassPostProcessor
兴浩
负责解析处理所有@Configuration标签类,主要流程在ConfigurationClassParser中进行1@PropertySource处理@PropertySource标签,用来解析属性文件并设置到Environment中2@ComponentScan处理@ComponentScan标签,扫描package下的所有Class并进行迭代解析//Processany@ComponentS
- Spring笔记
yfdddong
java学习笔记1024程序员节
Spring笔记核心概念IoC:控制反转对象的创建控权由程序转移到外部。-->解耦主动new对象转换为IoC容器提供对象Spring提供IoC容器,IoC容器负责对象的创建、初始化等工作。被创建或被管理的对象在IoC容器中称为BeanDI(DependencyInjection)依赖注入在容器中建立bean与bean之间的依赖关系使用对象时,不仅可以直接从IoC容器获取,并且获取到的bean已经绑
- Spring笔记(一):xml配置bean
睿丶清
xml配置bean属性配置1.属性配置必须要求实体类总存在无参构造方法2,属性配置标签property->name,value构造方法配置1.构造方法会涉及到重载,则在配置bean是需要针对相应的参数的类型,位置进行详细的指出2.构造方法配置使用标签constructor-arg3.在使用构造方法设置属性,会涉及到特殊字符情况下需要使用CDATA来进行特殊字符内容的包裹]]>4.属性值不光可以通过
- Spring笔记一
武汉大D哥
1,什么是IOC?翻译过来,叫控制翻转。将手动创建对象交给spring自动创建对象,这个过程称为控制翻转。2,IOC实现原理?对bean进行实例化,并保存到map中进行缓存下来。3,为什么要用IOC?解耦,解耦,解耦。一切框架都是为了简化开发,让开发更简单,让世界更美好。4,用到哪些设计模式代理设计模式,委派设计模式,单例设计模式,模板设计模式,工厂设计模式,策略设计模式。5,用到java哪些技术
- Spring笔记(6) - Spring的BeanFactoryPostProcessor探究
码猿手
springjava后端
一.背景在说BeanFactoryPostProcessor之前,先来说下BeanPostProcessor,在前文Spring笔记(2)-生命周期/属性赋值/自动装配及部分源码解析中讲解了BeanPostProcessor是一个bean后置处理器(bean创建对象初始化前后进行拦截工作)。BeanPostProcessor的运行流程如下:1)SpringIOC容器实例化Bean;2)调用Bean
- spring笔记-PropertyEditor和BeanFactory
兴浩
参考:https://blog.csdn.net/weixin_41562778/article/details/80372365https://www.jianshu.com/p/944930a0ba33https://www.jianshu.com/p/aeb97395d9c5前面介绍了PropertyEditor的功能,在BeanFactory中融合了PropertyEditor在BeanD
- Spring笔记整理(二)之AOP_声明式事务_JdbcTemplate
SerikaOnoe
Spring基础JavaSpringAOPJdbcTemplate声明式事务
文章目录Spring笔记整理(二)之AOPIOC回顾spirng整合连接池spring的IOC的注解配置条件常用注解全注解的配置spring整合junitAOP一、Spring的AOP概述AOP的应用aop思想的底层技术:动态代理1.JDk动态代理2.CGLIB动态代理3.spring使用的代理方式二、SpringAOP快速入门(全xml配置)AOP的术语基于aspectj的AOP的快速入门细节1
- 【Spring笔记05】Spring的自动装配
yh250648050
Springspring
这篇文章,主要介绍的内容是Spring的自动装配、五种自动装配的方式。目录一、自动装配1.1、什么是自动装配1.2、五种自动装配方式(1)no(2)default(3)byType(4)byName(5)constructor一、自动装配1.1、什么是自动装配自动装配,是指:Spring自动的建立Bean对象和Bean对象之间的依赖关系,而不需要我们开发人员手动的进行设置,这个过程就叫做自动装配。
- 【Spring笔记04】Spring中Bean的生命周期及Bean的后置处理器
yh250648050
Springspring
这篇文章主要介绍的是Spring框架中Bean的生命周期,Bean的后置处理器、以及多个后置处理器的先后执行顺序。目录一、生命周期介绍1.1、什么是Bean的生命周期1.2、Bean生命周期的过程(1)实例化阶段(2)依赖注入阶段(3)初始化阶段(4)使用阶段(5)销毁阶段二、Bean的后置处理器2.1、如何使用Bean的后置处理器2.2、后置处理器执行顺序一、生命周期介绍1.1、什么是Bean的
- 【Spring笔记02】Spring中的IOC容器和DI依赖注入介绍
yh250648050
Springspring
这篇文章,主要介绍一下Spring中的IOC容器和DI依赖注入两个概念。目录一、IOC控制反转1.1、什么是IOC1.2、两种IOC容器(1)基于BeanFactory的IOC容器(2)基于ApplicationContext的IOC容器二、DI依赖注入2.1、什么是DI2.2、四种依赖注入方式(1)setter方法注入(2)构造方法注入(3)工厂方法注入(4)静态方法注入一、IOC控制反转1.1
- 【Spring笔记03】Spring依赖注入各种数据类型
yh250648050
Springspring
这篇文章,详细介绍一下Spring框架中如何注入各种数据类型,包含:注入基本数据类型、数组、集合、Map映射、Property属性、注入空字符串、注入null值、注入特殊字符等内容,以及如何使用命名空间进行依赖注入。目录一、注入各种数据类型1.1、注入基本类型1.2、注入Bean对象(1)外部注入Bean方式(2)内部注入Bean方式1.3、注入数组1.4、注入List集合1.5、注入Set集合1
- Spring笔记
迷茫~
笔记
spring框架第一章1.1简介Spring是一个开源框架,它由[RodJohnson](https://baike.baidu.com/item/RodJohnson)创建。它是为了解决企业应用开发的复杂性而创建的。Spring使用基本的JavaBean来完成以前只可能由EJB完成的事情。然而,Spring的用途不仅限于服务器端的开发。从简单性、可测试性和松耦合的角度而言,任何Java应用都可以
- apache ftpserver-CentOS config
gengzg
apache
<server xmlns="http://mina.apache.org/ftpserver/spring/v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://mina.apache.o
- 优化MySQL数据库性能的八种方法
AILIKES
sqlmysql
1、选取最适用的字段属性 MySQL可以很好的支持大数据量的存取,但是一般说来,数据库中的表越小,在它上面执行的查询也就会越快。因此,在创建表的时候,为了获得更好的 性能,我们可以将表中字段的宽度设得尽可能小。例如,在定义邮政编码这个字段时,如果将其设置为CHAR(255),显然给数据库增加了不必要的空间,甚至使用VARCHAR这种类型也是多余的,因为CHAR(6)就可以很
- JeeSite 企业信息化快速开发平台
Kai_Ge
JeeSite
JeeSite 企业信息化快速开发平台
平台简介
JeeSite是基于多个优秀的开源项目,高度整合封装而成的高效,高性能,强安全性的开源Java EE快速开发平台。
JeeSite本身是以Spring Framework为核心容器,Spring MVC为模型视图控制器,MyBatis为数据访问层, Apache Shiro为权限授权层,Ehcahe对常用数据进行缓存,Activit为工作流
- 通过Spring Mail Api发送邮件
120153216
邮件main
原文地址:http://www.open-open.com/lib/view/open1346857871615.html
使用Java Mail API来发送邮件也很容易实现,但是最近公司一个同事封装的邮件API实在让我无法接受,于是便打算改用Spring Mail API来发送邮件,顺便记录下这篇文章。 【Spring Mail API】
Spring Mail API都在org.spri
- Pysvn 程序员使用指南
2002wmj
SVN
源文件:http://ju.outofmemory.cn/entry/35762
这是一篇关于pysvn模块的指南.
完整和详细的API请参考 http://pysvn.tigris.org/docs/pysvn_prog_ref.html.
pysvn是操作Subversion版本控制的Python接口模块. 这个API接口可以管理一个工作副本, 查询档案库, 和同步两个.
该
- 在SQLSERVER中查找被阻塞和正在被阻塞的SQL
357029540
SQL Server
SELECT R.session_id AS BlockedSessionID ,
S.session_id AS BlockingSessionID ,
Q1.text AS Block
- Intent 常用的用法备忘
7454103
.netandroidGoogleBlogF#
Intent
应该算是Android中特有的东西。你可以在Intent中指定程序 要执行的动作(比如:view,edit,dial),以及程序执行到该动作时所需要的资料 。都指定好后,只要调用startActivity(),Android系统 会自动寻找最符合你指定要求的应用 程序,并执行该程序。
下面列出几种Intent 的用法
显示网页:
- Spring定时器时间配置
adminjun
spring时间配置定时器
红圈中的值由6个数字组成,中间用空格分隔。第一个数字表示定时任务执行时间的秒,第二个数字表示分钟,第三个数字表示小时,后面三个数字表示日,月,年,< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />
测试的时候,由于是每天定时执行,所以后面三个数
- POJ 2421 Constructing Roads 最小生成树
aijuans
最小生成树
来源:http://poj.org/problem?id=2421
题意:还是给你n个点,然后求最小生成树。特殊之处在于有一些点之间已经连上了边。
思路:对于已经有边的点,特殊标记一下,加边的时候把这些边的权值赋值为0即可。这样就可以既保证这些边一定存在,又保证了所求的结果正确。
代码:
#include <iostream>
#include <cstdio>
- 重构笔记——提取方法(Extract Method)
ayaoxinchao
java重构提炼函数局部变量提取方法
提取方法(Extract Method)是最常用的重构手法之一。当看到一个方法过长或者方法很难让人理解其意图的时候,这时候就可以用提取方法这种重构手法。
下面是我学习这个重构手法的笔记:
提取方法看起来好像仅仅是将被提取方法中的一段代码,放到目标方法中。其实,当方法足够复杂的时候,提取方法也会变得复杂。当然,如果提取方法这种重构手法无法进行时,就可能需要选择其他
- 为UILabel添加点击事件
bewithme
UILabel
默认情况下UILabel是不支持点击事件的,网上查了查居然没有一个是完整的答案,现在我提供一个完整的代码。
UILabel *l = [[UILabel alloc] initWithFrame:CGRectMake(60, 0, listV.frame.size.width - 60, listV.frame.size.height)]
- NoSQL数据库之Redis数据库管理(PHP-REDIS实例)
bijian1013
redis数据库NoSQL
一.redis.php
<?php
//实例化
$redis = new Redis();
//连接服务器
$redis->connect("localhost");
//授权
$redis->auth("lamplijie");
//相关操
- SecureCRT使用备注
bingyingao
secureCRT每页行数
SecureCRT日志和卷屏行数设置
一、使用securecrt时,设置自动日志记录功能。
1、在C:\Program Files\SecureCRT\下新建一个文件夹(也就是你的CRT可执行文件的路径),命名为Logs;
2、点击Options -> Global Options -> Default Session -> Edite Default Sett
- 【Scala九】Scala核心三:泛型
bit1129
scala
泛型类
package spark.examples.scala.generics
class GenericClass[K, V](val k: K, val v: V) {
def print() {
println(k + "," + v)
}
}
object GenericClass {
def main(args: Arr
- 素数与音乐
bookjovi
素数数学haskell
由于一直在看haskell,不可避免的接触到了很多数学知识,其中数论最多,如素数,斐波那契数列等,很多在学生时代无法理解的数学现在似乎也能领悟到那么一点。
闲暇之余,从图书馆找了<<The music of primes>>和<<世界数学通史>>读了几遍。其中素数的音乐这本书与软件界熟知的&l
- Java-Collections Framework学习与总结-IdentityHashMap
BrokenDreams
Collections
这篇总结一下java.util.IdentityHashMap。从类名上可以猜到,这个类本质应该还是一个散列表,只是前面有Identity修饰,是一种特殊的HashMap。
简单的说,IdentityHashMap和HashM
- 读《研磨设计模式》-代码笔记-享元模式-Flyweight
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java
- PS人像润饰&调色教程集锦
cherishLC
PS
1、仿制图章沿轮廓润饰——柔化图像,凸显轮廓
http://www.howzhi.com/course/retouching/
新建一个透明图层,使用仿制图章不断Alt+鼠标左键选点,设置透明度为21%,大小为修饰区域的1/3左右(比如胳膊宽度的1/3),再沿纹理方向(比如胳膊方向)进行修饰。
所有修饰完成后,对该润饰图层添加噪声,噪声大小应该和
- 更新多个字段的UPDATE语句
crabdave
update
更新多个字段的UPDATE语句
update tableA a
set (a.v1, a.v2, a.v3, a.v4) = --使用括号确定更新的字段范围
- hive实例讲解实现in和not in子句
daizj
hivenot inin
本文转自:http://www.cnblogs.com/ggjucheng/archive/2013/01/03/2842855.html
当前hive不支持 in或not in 中包含查询子句的语法,所以只能通过left join实现。
假设有一个登陆表login(当天登陆记录,只有一个uid),和一个用户注册表regusers(当天注册用户,字段只有一个uid),这两个表都包含
- 一道24点的10+种非人类解法(2,3,10,10)
dsjt
算法
这是人类算24点的方法?!!!
事件缘由:今天晚上突然看到一条24点状态,当时惊为天人,这NM叫人啊?以下是那条状态
朱明西 : 24点,算2 3 10 10,我LX炮狗等面对四张牌痛不欲生,结果跑跑同学扫了一眼说,算出来了,2的10次方减10的3次方。。我草这是人类的算24点啊。。
然后么。。。我就在深夜很得瑟的问室友求室友算
刚出完题,文哥的暴走之旅开始了
5秒后
- 关于YII的菜单插件 CMenu和面包末breadcrumbs路径管理插件的一些使用问题
dcj3sjt126com
yiiframework
在使用 YIi的路径管理工具时,发现了一个问题。 <?php  
- 对象与关系之间的矛盾:“阻抗失配”效应[转]
come_for_dream
对象
概述
“阻抗失配”这一词组通常用来描述面向对象应用向传统的关系数据库(RDBMS)存放数据时所遇到的数据表述不一致问题。C++程序员已经被这个问题困扰了好多年,而现在的Java程序员和其它面向对象开发人员也对这个问题深感头痛。
“阻抗失配”产生的原因是因为对象模型与关系模型之间缺乏固有的亲合力。“阻抗失配”所带来的问题包括:类的层次关系必须绑定为关系模式(将对象
- 学习编程那点事
gcq511120594
编程互联网
一年前的夏天,我还在纠结要不要改行,要不要去学php?能学到真本事吗?改行能成功吗?太多的问题,我终于不顾一切,下定决心,辞去了工作,来到传说中的帝都。老师给的乘车方式还算有效,很顺利的就到了学校,赶巧了,正好学校搬到了新校区。先安顿了下来,过了个轻松的周末,第一次到帝都,逛逛吧!
接下来的周一,是我噩梦的开始,学习内容对我这个零基础的人来说,除了勉强完成老师布置的作业外,我已经没有时间和精力去
- Reverse Linked List II
hcx2013
list
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 
- Spring4.1新特性——页面自动化测试框架Spring MVC Test HtmlUnit简介
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- Hadoop集群工具distcp
liyonghui160com
1. 环境描述
两个集群:rock 和 stone
rock无kerberos权限认证,stone有要求认证。
1. 从rock复制到stone,采用hdfs
Hadoop distcp -i hdfs://rock-nn:8020/user/cxz/input hdfs://stone-nn:8020/user/cxz/运行在rock端,即源端问题:报版本
- 一个备份MySQL数据库的简单Shell脚本
pda158
mysql脚本
主脚本(用于备份mysql数据库): 该Shell脚本可以自动备份
数据库。只要复制粘贴本脚本到文本编辑器中,输入数据库用户名、密码以及数据库名即可。我备份数据库使用的是mysqlump 命令。后面会对每行脚本命令进行说明。
1. 分别建立目录“backup”和“oldbackup” #mkdir /backup #mkdir /oldbackup
- 300个涵盖IT各方面的免费资源(中)——设计与编码篇
shoothao
IT资源图标库图片库色彩板字体
A. 免费的设计资源
Freebbble:来自于Dribbble的免费的高质量作品。
Dribbble:Dribbble上“免费”的搜索结果——这是巨大的宝藏。
Graphic Burger:每个像素点都做得很细的绝佳的设计资源。
Pixel Buddha:免费和优质资源的专业社区。
Premium Pixels:为那些有创意的人提供免费的素材。
- thrift总结 - 跨语言服务开发
uule
thrift
官网
官网JAVA例子
thrift入门介绍
IBM-Apache Thrift - 可伸缩的跨语言服务开发框架
Thrift入门及Java实例演示
thrift的使用介绍
RPC
POM:
<dependency>
<groupId>org.apache.thrift</groupId>