# Java

# 进制

进制 英文 范围 前缀 后缀
二进制 Binary 0-1 0b B
八进制 Octal 0-7 0/0O O
十进制 Decimal 0-9 D
十六进制 Hexadecimal 0-9, A-F 0x H

# maven镜像

  • 阿里云
<mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • ibiblio
<mirror>
    <id>ibiblio</id>
    <name>Mirror from Maven ibiblio</name>
    <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • 华为
<mirror>
    <id>huaweicloud</id>
    <name>mirror from maven huaweicloud</name>
    <url>https://mirror.huaweicloud.com/repository/maven/</url>
    <mirrorOf>central</mirrorOf>
</mirror>

使用华为Maven中央仓库时,需要在servers节点增加一个server子节点

<server>
    <id>huaweicloud</id>
    <username>anonymous</username>
    <password>devcloud</password>
</server>
  • repo1.maven.org
<mirror>
    <id>central</id>
    <name>Maven Repository Switchboard</name>
    <url>http://repo1.maven.org/maven2/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • repo1.maven.apache.org
<mirror>
    <id>central</id>
    <name>Maven Repository Switchboard</name>
    <url>http://repo1.maven.apache.org/maven2/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • repo2.maven.org
<mirror>
    <id>repo2</id>
    <name>Mirror from Maven Repo2</name>
    <url>http://repo2.maven.org/maven2/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • spring.io
<mirror>
	<id>sprintio</id>
	<mirrorOf>central</mirrorOf>
	<name>Human Readable Name for this Mirror.</name>
	<url>https://repo.spring.io/libs-snapshot/</url>
</mirror>
  • uk.maven.org
<mirror>
    <id>ui</id>
    <name>Mirror from UK</name>
    <url>http://uk.maven.org/maven2/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • repository.jboss.org
<mirror>
    <id>jboss-public-repository-group</id>
    <name>JBoss Public Repository Group</name>
    <url>http://repository.jboss.org/nexus/content/groups/public</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • Google
<mirror>
    <id>google</id>
    <name>google maven</name>
    <url>https://maven.google.com/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • Maven china
<mirror>
    <id>maven.net.cn</id>
    <name>Mirror from Maven in china</name>
    <url>http://maven.net.cn/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>
  • Maven oschina
<mirror>
    <id>CN</id>
    <name>OSChinaCentral</name>
    <url>http://maven.oschina.net/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>

# windows环境变量

JAVA_HOME
C:\Program Files\Java\jre1.8.0_171

CATALINA_HOME
D:\apache-tomcat-8.5.30

CLASSPATH
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\lib;

Path
;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%MAVEN_HOME%\bin;%CATALINA_HOME%\bin;

# 后端框架

dubbo

tcc-transaction是TCC型事务java实现

fastjson

# 延迟队列

https://github.com/search?l=Java&o=desc&q=delayqueue&s=updated&type=Repositories

https://github.com/dongzhuo0228/delayqueuetest

https://github.com/qjm201000/concurrent_delayqueue

# 工具

utf8+bom编码格式 java 文件 转换为 utf8 格式文件

从GBK到UTF8的某些路径中的文件编码转换

JVM监控

# 地区数据

district

Administrative-divisions-of-China

Region

china_regions

# Java面试题

https://github.com/Snailclimb/JavaGuide

https://github.com/crossoverJie/Interview-Notebook

https://github.com/crossoverJie/JCSprout

https://github.com/kdn251/interviews