This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.http.HttpHost; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.conn.params.ConnRouteParams; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.params.CoreConnectionPNames; | |
import org.apache.http.util.EntityUtils; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name="ArtifactManager"> | |
<artifact type="jar" name="Editor:jar"> | |
<output-path>$PROJECT_DIR$/out/artifacts/Editor_jar</output-path> | |
<root id="archive" name="Editor.jar"> | |
<element id="module-output" name="Editor" /> | |
<element id="module-output" name="editor_design" /> | |
</root> | |
</artifact> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
对于已创建的Docker Machine实例,更换镜像源的方法如下 | |
在windows命令行执行docker-machine ssh [machine-name]进入VM bash | |
sudo vi /var/lib/boot2docker/profile | |
在--label provider=virtualbox的下一行添加--registry-mirror https://xxxxxxxx.mirror.aliyuncs.com | |
重启docker服务: | |
sudo /etc/init.d/docker restart | |
或者重启VM:exit退出VM bash,在windows命令行中执行docker-machine restart | |
## 如果是新建Docker Machine实例,参考阿里云的操作文档https://cr.console.aliyun.com/#/accelerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE configuration | |
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" | |
"http://mybatis.org/dtd/mybatis-3-config.dtd"> | |
<configuration> | |
<properties resource="jdbc.properties"/> | |
<!-- <typeAliases> | |
<typeAlias alias="Student" type="top.richmanroad.model.Student"/> | |
</typeAliases>--> | |
<typeAliases> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.rootLogger=info,appender1,appender2 | |
log4j.appender.appender1=org.apache.log4j.ConsoleAppender | |
log4j.appender.appender2=org.apache.log4j.FileAppender | |
log4j.appender.appender2.File=D:/logFile.txt | |
log4j.appender.appender1.layout=org.apache.log4j.TTCCLayout | |
log4j.appender.appender2.layout=org.apache.log4j.TTCCLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.InvocationTargetException; | |
/** | |
* Created by AhianZhang on 2018/3/23. | |
*/ | |
public class reflect | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import java.lang.annotation.*; | |
/** | |
* 自定义注解 | |
* Created by AhianZhang on 2018/3/24. | |
*/ | |
@Target({ElementType.METHOD,ElementType.TYPE,ElementType.FIELD})//限定注解的使用范围,详见 ElementType | |
@Retention(RetentionPolicy.RUNTIME)//三种 Source:只在源码显示,编译时会丢弃; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
/** | |
* Created by AhianZhang on 2018/3/26. | |
*/ | |
public class ThreadTest | |
{ | |
public static void main(String[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.*; | |
import org.apache.hadoop.io.IOUtils; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import java.net.URI; | |
import java.net.URISyntaxException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.FileSystem; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.LongWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.Mapper; | |
import org.apache.hadoop.mapreduce.Reducer; | |
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; | |
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; |
OlderNewer