自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (279)
  • 问答 (4)
  • 收藏
  • 关注

转载 Spring Cloud Eureka: 如何指定Zone

有坑。先说结论:如果想给当前服务指定属于哪个zone, 使用eureka.instance.metadata-map.zone=myzone属性是无效的,而应该使用:eureka.client.availabilityZones.beijing=myzone # beijing是region同时指定region:eureka.client.region=beijing至于原因,...

2020-01-31 20:29:53 489

转载 Spring Cloud Feign 之 超时重试次数探究

SpringCloud Feign 之 超时重试次数探究上篇文章,我们对Feign的fallback有一个初步的体验,在这里我们回顾一下,Fallback主要是用来解决依赖的服务不可用或者调用服务失败或超时,使用默认的返回值。实际应用中, 在Fallback之前,需要对服务配置重试机制,当多次重试服务,还是服务不可用的情况下,就触发Fallback。这里,我们对重试机制配置以及重试次数进行一...

2020-01-31 01:21:43 2334

转载 shiro多权限@RequiresPermissions注释

@RequiresPermissions多权限是分两种的,这里要注意第一种:必须全部符合(默认不写或者在后面添加logical = Logical.AND)@RequiresPermissions(value={“studentMan:find_record_list”,“teacher:find_record_list”})上面这种情况是默认当前对象必须同时全部拥有指定权限第二种:符...

2020-01-29 22:35:09 2418

转载 【shiro】(4)---Shiro认证、授权案例讲解

Shiro认证、授权案例讲解一、认证1、 认证流程2、用户密码已经加密、加盐的用户认证(1)测试类 // 用户登陆和退出,这里我自定了一个realm(开发肯定需要自定义realm获取数据库密码和权限) @Test public void testCustomRealmMd5() { // 创建securityManager工厂,通...

2020-01-29 14:26:10 817

转载 JVM中即时编译器JIT与解释器并存-深入理解jvm

一.学习目标1.了解解释器与编译器的概念与作用。2.知道jvm中三种执行模式。3.了解热点代码。二.解释器模式与编译器模式以及混合模式  字节码文件通过类装载器装载,被分配被分配到JVM的运行时数据区,然后会被执行引擎执行。执行引擎以指令为单位读取Java字节码。它就像一个CPU一样,一条一条地执行机器指令。每个字节码指令都由一个1字节的操作码和附加的操作数组成。执行引擎取得一...

2020-01-27 13:26:56 716

转载 Dubbo 使用rest协议发布http服务

演示用GitHub地址:https://github.com/suyin58/dubbo-rest-example1Dubbo_rest介绍Dubbo自2.6.0版本后,合并了dubbox的restful风格的接口暴露方式,其restful的处理采用的是jboss.resteasy框架。使用该功能可以简便的将dubbo服务直接通过http的方式发布,不需要再使用中转的http...

2020-01-23 23:08:07 2940

转载 csrf验证机制

CSRF(跨站请求伪造)CSRF 英文全称为 Cross SIte Request ForgeryCSRF 通常指恶意攻击者盗用用户的名义,发送恶意请求,严重泄露个人信息危害财产的安全CSRF攻击示意图解决CSRF攻击使用csrf_token校验1.客户端和浏览器向后端发送请求时,后端往往会在响应中的 cookie 设置 csrf_token 的值,可以使用请求钩子实现,...

2020-01-19 17:49:51 904

原创 代理模式和装饰器模式的区别

代理,偏重因自己无法完成或自己无需关心,需要他人干涉事件流程,更多的是对对象的控制。装饰,偏重对原对象功能的扩展,扩展后的对象仍是是对象本身。...

2020-01-19 15:59:24 166

转载 Alibaba Seninel 滑动窗口实现原理(文末附原理图)

要实现限流、熔断等功能,首先要解决的问题是如何实时采集服务(资源)调用信息。例如将某一个接口设置的限流阔值 1W/tps,那首先如何判断当前的 TPS 是多少?Alibaba Sentinel 采用滑动窗口来实现实时数据的统计。温馨提示:如果对源码不太感兴趣,可以先跳到文末,看一下滑动窗口的设计原理图,再决定是否需要阅读源码。1、滑动窗口核心类图我们先对上述核心类做一个简单的...

2020-01-08 16:58:37 999

转载 阿里面试官:如何实现一个线程安全的单例,前提是不能加锁

单例,大家肯定都不陌生,这是Java中很重要的一个设计模式。稍微了解一点单例的朋友也都知道实现单例是要考虑并发问题的,一般情况下,我们都会使用synchronized来保证线程安全。那么,如果有这样一道面试题:不使用synchronized和lock,如何实现一个线程安全的单例?你该如何回答?C类应聘者:可以使用饿汉模式实现单例。如:public class Singleton {...

2020-01-07 17:29:50 440

转载 Sentinel 原理讲解

Blog PostsSentinel 为 Dubbo 服务保驾护航byEric Zhao 在生产环境中使用 Sentinel 控制台byEric Zhao Sentinel 与 Hystrix 的对比byEric Zhao Guideline: 从 Hystrix 迁移到 SentinelbyEric Zhao Sentinel 控制台监控数据持久化【MySQL】by...

2020-01-06 22:39:52 1070

转载 寻找一把进入 Alibaba Sentinel 的钥匙(文末附流程图)

经过前面几篇文章的铺垫,我们接下来将正式来探讨 Sentinel 的 entry 方法的实现流程。找到一把进入 Alibaba Sentinel 内核的钥匙。无论是从 Sentinel 适配 Dubbo 也好,还是 SphU 源码中的注释中能看出,对一个资源进行限流或熔断,通常需要调用 SphU 的 entry 方法,例如如下示例代码。publicvoidfoo(){En...

2020-01-06 22:38:27 337

mariadb-5.5.34-winx64.zip

MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可 MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。在存储引擎方面,使用XtraDB(英语:XtraDB)来代替MySQL的InnoDB。 MariaDB由MySQL的创始人Michael Widenius(英语:Michael Widenius)主导开发,他早前曾以10亿美元的价格,将自己创建的公司MySQL AB卖给了SUN,此后,随着SUN被甲骨文收购,MySQL的所有权也落入Oracle的手中。MariaDB名称来自Michael Widenius的女儿Maria的名字。

2018-05-12

canal.deployer-1.0.25.tar.gz

阿里巴巴mysql数据库binlog的增量订阅&消费组件 基于日志增量订阅&消费支持的业务: 数据库镜像 数据库实时备份 多级索引 (卖家和买家各自分库索引) search build 业务cache刷新 价格变化等重要业务消息

2018-05-12

mariadb-10.3.6-winx64.zip

MariaDB is free and open source software The MariaDB database server is published as free and open source software under the General Public License version 2. You can download and use it as much as you want free of charge. All use of the binaries from mariadb.org is at your own risk as stated in the GPLv2. While we do our best to make the world’s best database software, the MariaDB Foundation does not provide any guarantees and cannot be hold liable for any issues you may encounter. The MariaDB Foundation does not provide any help or support services if you run into troubles while using MariaDB. Support and guarantees are available on commercial terms from multiple MariaDB vendors. There are alse many resources you can use to learn MariaDB and support yourself or get peer support online.

2018-05-09

canal--mysql数据库binlog的增量订阅&消费组件

名称:canal [kə'næl] 译意: 水道/管道/沟渠 语言: 纯java开发 定位: 基于数据库增量日志解析,提供增量数据订阅&消费,目前主要支持了mysql 关键词: mysql binlog parser / real-time / queue&topic;

2018-05-08

redis2.8 windows 64

redis2.8 windows 64位版本的,在本地测试使用 Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。从2010年3月15日起,Redis的开发工作由VMware主持。从2013年5月开始,Redis的开发由Pivotal赞助。

2018-04-16

DevCenter--Cassandra

DataStax for Developers Learn and build with your favorite language and a friendly GUI.

2018-01-17

指令集时钟周期

ASM为Assembly的简写,ASM指令的含义为汇编指令(泛指Intel 80X86 CPU中的指令集)。 ASM指令是为编程人员编写程序准备的,编译器将会把ASM指令真正的翻译成机器代码(能控制CPU做出操作的代码)。 ASM至今运用广泛,2015年所有的个人电脑,大型服务器绝大多数使用ASM指令集。 ASM的优点在于指令广泛和丰富,处理大型数据游刃有余,但是缺点也是显而易见的,由于指令的长度不等与指令的复杂,其耗能大,CPU体积也大。

2017-12-21

JAVA面试资料

JAVA面试资料,包含了Java的知识的各个方面的基本概括和原理

2017-11-21

rabbitmq-server-windows-3.6.12.zip

RabbitMQ 3.6.12 is a maintenance release. Upgrades and Compatibility See the "Upgrading clusters" section of the documentation for general documentation on upgrades. This release has no other known incompatibilities with versions 3.6.7 through 3.6.11. See the upgrade and compatibility sections in the 3.6.7 release notes if upgrading from an earlier release. Core Server Bug Fixes Process responsible for running the autoheal partition handling strategy could run into a deadlock with its peers, preventing autoheal from completing. GitHub issue: rabbitmq-server#1346 Garbage collection of mirrored queue metrics on nodes that did not host a master or mirror for a queue affected delivery and acknowledgement rates. This could result in rates being 0 or negative when they should not be. GitHub issue: rabbitmq-server#1340 Stats emission could prevent queue mirrors from performing garbage collection and consume memory even when they were empty. GitHub issue: rabbitmq-common#220 (continuation to rabbitmq-common#196) RABBITMQ_SCHEDULER_BIND_TYPE and RABBITMQ_DISTRIBUTION_BUFFER_SIZE now can be set via rabbitmq-env.conf. GitHub issue: rabbitmq-server#1338 Shovel Management Plugin Bug Fixes Passwords in source and destination URIs are now redacted out. GitHub issue: rabbitmq-federation-management#15 Federation Management Plugin Bug Fixes Passwords in upstream URIs are now redacted out. GitHub issue: rabbitmq-federation-management#15 Upgrading To upgrade a non-clustered RabbitMQ simply install the new version. All configuration and persistent message data are retained. When upgrading using definitions export/import from versions earlier than 3.6.0, see http://rabbitmq.com/passwords.html. To upgrade a RabbitMQ cluster, follow the instructions in RabbitMQ documentation.

2017-10-30

R-3.4.1(R语言sdk)

R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.

2017-08-23

RStudio-1.0.153

RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, and a variety of robust tools for plotting, viewing history, debugging and managing your workspace. Learn More about RStudio features.

2017-08-23

LuaForWindows

Installation of Lua for the Windows operating systems including many lua libraries. NOTICE Development move to GitHub https://github.com/rjpcomputing/luaforwindows Overview Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows. Lua for Windows (LfW) combines Lua binaries, Lua libraries with a Lua-capable editor in a single install package for the Microsoft Windows operating system. LfW contains everything you need to write, run and debug Lua scripts on Windows. A wide variety of libraries and examples are included that are ready to use with Microsoft Windows. LfW runs on Windows 2000 and newer versions of Windows. Lua and its associated libraries are also available for other operating systems, so most scripts will be automatically cross-platform.

2017-06-21

SwitchHosts

SwitchHost! 这是一个用于快速切换 hosts 文件的小程序,基于 Python 和 wxPython 开发。 功能特性: •快速切换 hosts •跨平台(基于 wxPython) •hosts 文件语法高亮 •可为不同的 hosts 方案设置不同的图标 •切换 hosts 方案时浮出窗口提示 更新历史: •2011-12-14 允许输入超长的 hosts 方案。 •2011-10-09 发布 0.1.6 版,修复若干 bug,增加自动检查最新版本的功能。 •2011-09-29 发布 0.1.5 版,新增 hosts 内容语法高亮。 •2011-09-28 发布 0.1.4 版,新增“添加”、“删除”按钮;hosts 内容修改后自动保存;修改若干 bug。 •2011-09-19 发布 0.1.3 版,修复若干 bug。 •2011-09-15 发布 0.1.2 版,添加主面板,可以主面板上对 hosts 进行增加、删除、编辑、重命名等操作。 •2011-09-02 发布 0.1.0 版,完成基本功能。 不起作用的话,请运行管理员权限运行

2017-02-22

erlang19安装包

Erlang/OTP 19.1 is a service release containing mostly bug fixes, as well as a number of new features and characteristics improvements. Some highlights of the release are: erts: Improved dirty scheduler support. A purge of a module will not have to wait for completion of all ongoing dirty NIF calls. erts: Improved accuracy of timeouts on MacOS X. kernel: Add net_kernel:setopts/2 and net_kernel:getopts/2 to control options for distribution sockets in runtime. asn1: Compiling multiple ASN.1 modules in the same directory with parallel make (make -j) should now be safe. httpd: support for PUT and DELETE in mod_esi ~30 contributions since 19.0

2016-12-02

xml 格式化工具

xml 格式化工具,可以进行格式化优雅的显示形式.

2016-11-17

alibaba-otter

项目背景 阿里巴巴B2B公司,因为业务的特性,卖家主要集中在国内,买家主要集中在国外,所以衍生出了杭州和美国异地机房的需求,同时为了提升用户体验,整个机房的架构为双A,两边均可写,由此诞生了otter这样一个产品。 otter第一版本可追溯到04~05年,此次外部开源的版本为第4版,开发时间从2011年7月份一直持续到现在,目前阿里巴巴B2B内部的本地/异地机房的同步需求基本全上了otter。 目前同步规模: 同步数据量6亿 文件同步1.5TB(2000w张图片) 涉及200+个数据库实例之间的同步 80+台机器的集群规模 项目介绍 名称:otter ['ɒtə(r)] 译意: 水獭,数据搬运工 语言: 纯java开发 定位: 基于数据库增量日志解析,准实时同步到本机房或异地机房的mysql/oracle数据库. 一个分布式数据库同步系统

2016-09-30

protobuf3.0-windows

protobuf3.0,在windows下面的安装说明文档,以及proto.exe,以及如何编译成java的jar包得说明

2016-04-21

eclipse-jee-mars-2-win32-x86_64.zip 工具

eclipse-jee-mars-2-win32-x86_64.zip eclipse 火星版本

2016-04-08

svn 命令行安装包

svn 命令行安装包,直接直接通过 svn checkout svn://172.30.11.11/my_dev

2016-04-08

MongoVUE-1.6.9以及破解文件

将破解文件夹下的MongoVUE.exe覆盖安装目录下MongoVUE即可。

2016-04-06

12306订票助手.NET_10.5.1.0

12306订票助手.NET_10.5.1.0,抢票速度很快的,用过大家都知道

2016-02-01

NIO trick and trap

NIO trick and trap, 从io的产生,如何产生,分类,区别,应用。做了区分

2016-01-29

erlang 18-release

Some highlights of the release are: ssl: Add possibility to downgrade an SSL/TLS connection to a tcp connection, and give back the socket control to a user process. ssh: The following new key exchange algorithms are implemented:'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521','diffie-hellman-group14-sha1', 'diffie-hellman-group-exchange-sha1' and 'diffie-hellman-group-exchange-sha256'. This raises the security level considerably. kernel,stdlib,sasl: A mechanism for limiting the amount of text that the built-in error logger events will produce has been introduced. It is useful for limiting both the size of log files and the CPU time used to produce them. This mechanism is experimental in the sense that it may be changed based on feedback. See config parameter error_logger_format_depth in the Kernel application.

2015-11-19

haproxy-1.5.12

haproxy,提供四层,七层负载均衡以及healthcheck心跳监测功能。 详细配置文件,都已经设置好了,里面还有ReadMe.txt里面有启动方式,还有监控页面。然后亲测可用。

2015-08-29

nginx虚拟主机

自己配置好的nginx虚拟主机配置。里面有基本配置和虚拟主机配置

2015-08-29

redis-2.6 windows版本

redis2.6 windows版本,提供redis主从和sentinel的自动无缝切换服务,以及,主从监控,以及failover

2015-08-23

深入理解Java7-技术与最佳实践

深入理解Java7-技术与最佳实践

2014-12-29

Sun JVM原理与内存管理

Sun JVM原理与内存管理

2014-12-29

[深入理解Java虚拟机:JVM高级特性与最佳实践(有书签)

[深入理解Java虚拟机:JVM高级特性与最佳实践(有书签) PDF有书签,可以翻阅

2014-12-20

redis-2.4.5-win32-win64.zip

redis-2.4.5-win32-win64.zip redis_2.6.12-win32-win64.zip 总共两个redis

2014-11-25

java.bug模式详解

java bug模式详解

2014-11-21

eclipse-jee-kepler-SR2-win32.zip

eclipse-jee-kepler-SR2-win32.zip

2014-11-17

Understanding_Java_Garbage_Collection_v3

Understanding_Java_Garbage_Collection_v3

2014-11-16

Java程序性能优化 让你的Java程序更快、更稳定

Java程序性能优化 让你的Java程序更快、更稳定

2014-11-16

设计模式:可复用面向对象软件的基础

设计模式:可复用面向对象软件的基础

2014-11-16

算法导论 第三版 中文

算法导论 第三版 中文 不是影印版本

2014-11-16

Subversion--WINDOW下面的SVN命令行

我们知道,在linux下面的svn客户端采用命令的方式管理与服务器端svn交互。有些朋友想在windows下也具有相同的功能,而不是TortoiseSVN的GUI管理方式。这样可以使用我们熟悉的svn命令。 在不用安装TortoiseSVN客户端的情况,大家可以再http://subversion.apache.org/packages.html#windows 找到windows下的svn客户端工具。选择Win32Svn 进行安装。 安装好后,bin目录下就是相应程序了。通过添加环境变量的方式,把bin目录添加到path。启动cmd,敲入 svn help 以确认是否安装成功。 好了,可以找到你的代码,做checkout了。在commit代码的过程中,经常会出现的一个问题是:svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found 这表示你的系统,没有指定svn客户端通过什么样的文本编辑器来写提交的注释。我们添加环境变量,SVN_EDITOR的值为notepad。再次svn ci 代码。notepad弹出了,写完注释保存。代码提交!

2014-08-08

python2.7.7和对应的Mysql驱动

python-2.7.7.msi MySQL-python-1.2.4b4.win32-py2.7.exe

2014-06-27

mybatis-generator-core-1.3.2-bundle.zip工具

mybatis 自动生成DAO,XML,javaBean工具。 mybatis-generator-core-1.3.2-bundle.zip

2014-06-08

mariadb-10.0.7-winx64.zip

MariaDB is free and open source software The MariaDB database server is published as free and open source software under the General Public License version 2. You can download and use it as much as you want free of charge. All use of the binaries from mariadb.org is at your own risk as stated in the GPLv2. While we do our best to make the world’s best database software, the MariaDB Foundation does not provide any guarantees and cannot be hold liable for any issues you may encounter.

2018-05-09

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

TA关注的人

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