Ribbon

RibbonApplicationMenu: getting rid of the AuxiliaryPane

删除回忆录丶 提交于 2019-12-01 12:58:33
It so happened that the application I'm working on doesn't operate on documents, so there's no need in displaying the recently opened documents list in the application menu. But - annoyingly - there are no properties readily available in the RibbonApplicationMenu class to hide the unused AuxiliaryPane (for which, curiously, the property does exist, but is marked as "internal"). Of course, I can just leave it there - but that's... untidy. So, here's the solution I came up with. Hope it will be helpful for anyone else :-) The general idea is to subclass the RibbonApplicationMenu , find the

RibbonApplicationMenu: getting rid of the AuxiliaryPane

流过昼夜 提交于 2019-12-01 11:10:32
问题 It so happened that the application I'm working on doesn't operate on documents, so there's no need in displaying the recently opened documents list in the application menu. But - annoyingly - there are no properties readily available in the RibbonApplicationMenu class to hide the unused AuxiliaryPane (for which, curiously, the property does exist, but is marked as "internal"). Of course, I can just leave it there - but that's... untidy. So, here's the solution I came up with. Hope it will be

Spring Cloud全家桶主要组件及简要介绍

核能气质少年 提交于 2019-12-01 07:54:30
一、微服务简介 微服务是最近的一两年的时间里是很火的一个概念。感觉不学习一下都快跟不上时代的步伐了,下边做一下简单的总结和介绍。 何为微服务?简而言之,微服务架构风格这种开发方法,是以开发一组小型服务的方式来开发一个独立的应用系统的。其中每个小型服务都运行在自己的进程中,并经常采用HTTP资源API这样轻量的机制来相互通信。这些服务围绕业务功能进行构建,并能通过全自动的部署机制来进行独立部署。这些微服务可以使用不同的语言来编写,并且可以使用不同的数据存储技术。对这些微服务我们仅做最低限度的集中管理。 一个微服务一般完成某个特定的功能,比如下单管理、客户管理等等。每一个微服务都是微型六角形应用,都有自己的业务逻辑和适配器。一些微服务还会发布API给其它微服务和应用客户端使用。其它微服务完成一个Web UI,运行时,每一个实例可能是一个云VM或者是Docker容器。 比如,一个前面描述系统可能的分解如下: 总的来说,微服务的主旨是将一个原本独立的系统拆分成多个小型服务,这些小型服务都在各自独立的进程中运行,服务之间通过基于HTTP的RESTful API进行通信协作,并且每个服务都维护着自身的数据存储、业务开发、自动化测试以及独立部署机制。 二、微服务的特征 1、每个微服务可独立运行在自己的进程里; 2、一系列独立运行的微服务共同构建起了整个系统; 3、每个服务为独立的业务开发

WPF window border acting weird with Ribbon Control

妖精的绣舞 提交于 2019-12-01 07:20:02
问题 I am using the Ribbon control in WPF and I noticed there are 2 different versions. using Microsoft.Windows.Controls.Ribbon; If I use this one in my xaml and class, my whole window will be in a very old windows style. using System.Windows.Controls.Ribbon; If I use this one in my xaml and class, my Ribbontabs suddenly won't fill correctly anymore. When I use both of them. With this: <ribbon:RibbonWindow x:Class="WPSDashboard.Views.ShellWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

How to have a VSTO Ribbon and Context Menu at the same time?

余生颓废 提交于 2019-12-01 06:05:24
EDIT: The posters answer is correct except for it should read xmlns="http://schemas.microsoft.com/office/2009/07/customui" for the include. As a side effect the ribbon and context menu defined in an XML file will not work in Office 2007. If you need to add a context menu in 2007, use the now deprecated, and a context menu within the Outlook 2007 message window is NOT POSSIBLE. this.Application.ItemContextMenuDisplay += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemContextMenuDisplayEventHandler(Application_ItemContextMenuDisplay); I've created both a Ribbon and a Context menu,

Spring Cloud 入门教程2、服务消费者(Ribbon)

孤街浪徒 提交于 2019-12-01 06:03:59
一、前言 1、什么是Ribbon Ribbon是Netflix开源的实现了负载均衡等功能的RPC客户端。 支持HTTP、TCP、UDP协议,且有一定的容错、缓存等机制 。 Spring Cloud基于Ribbon封装了Spring Cloud Ribbon,方便结合Eureka、Consul等服务治理框架使用。Ribbon的主要 作用是:从服务器端拿到对应服务列表后以 负载均衡 的方式访问对应服务。 从这张图上来说,Ribbon主要是从Eureka拿到服务列表之后,以负载均衡的策略选择其中一台发起调用。 2、本篇环境信息 框架 版本 Spring Boot 2.0.0.RELEASE Spring Cloud Finchley.BUILD-SNAPSHOT JDK 1.8.x 3、准备工作 Eureka服务端搭建 参考: https://ken.io/note/spring-cloud-eureka-quickstart 服务提供者搭建 参考: https://ken.io/note/spring-cloud-eureka-quickstart 项 说明 GroupId io.ken.springcloud.testservice ArtifactId testservice pom.xml、启动类(App.java)保持不变 二、服务提供者准备 1、配置Eureka地址

SpringCloud系列第05节之服务消费Ribbon和Feign

一世执手 提交于 2019-12-01 06:03:49
Ribbon Ribbon 是一个基于 HTTP 和 TCP 客户端的负载均衡器 它可以在客户端配置 ribbonServerList(服务端列表),然后轮询请求以实现均衡负载 它在联合 Eureka 使用时 ribbonServerList 会被 DiscoveryEnabledNIWSServerList 重写,扩展成从 Eureka 注册中心获取服务端列表 同时它也会用 NIWSDiscoveryPing 来取代 IPing,它将职责委托给 Eureka 来确定服务端是否已经启动 Feign Spring Cloud Netflix 的微服务都是以 HTTP 接口的形式暴露的,所以可以用 Apache 的 HttpClient 或 Spring 的 RestTemplate 去調用 而 Feign 是一個使用起來更加方便的 HTTP 客戶端,它用起來就好像調用本地方法一樣,完全感覺不到是調用的遠程方法 总结起来就是: 发布到注册中心的服务方接口,是 HTTP 的,也可以不用 Ribbon 或者 Feign,直接浏览器一样能够访问 只不过 Ribbon 或者 Feign 调用起来要方便一些, 最重要的是:它俩都支持软负载均衡 注意:spring-cloud-starter-feign 里面已经包含了 spring-cloud-starter-ribbon(Feign 中也使用了

Spring Cloud构建微服务架构:服务消费(Ribbon)

百般思念 提交于 2019-12-01 05:38:13
Spring Cloud Ribbon Spring Cloud Ribbon是基于Netflix Ribbon实现的一套客户端负载均衡的工具。它是一个基于HTTP和TCP的客户端负载均衡器。它可以通过在客户端中配置ribbonServerList来设置服务端列表去轮询访问以达到均衡负载的作用。 当Ribbon与Eureka联合使用时,ribbonServerList会被DiscoveryEnabledNIWSServerList重写,扩展成从Eureka注册中心中获取服务实例列表。同时它也会用NIWSDiscoveryPing来取代IPing,它将职责委托给Eureka来确定服务端是否已经启动。 而当Ribbon与Consul联合使用时,ribbonServerList会被ConsulServerList来扩展成从Consul获取服务实例列表。同时由ConsulPing来作为IPing接口的实现。 我们在使用Spring Cloud Ribbon的时候,不论是与Eureka还是Consul结合,都会在引入Spring Cloud Eureka或Spring Cloud Consul依赖的时候通过自动化配置来加载上述所说的配置内容,所以我们可以快速在Spring Cloud中实现服务间调用的负载均衡。 下面我们通过具体的例子来看看如何使用Spring Cloud

Spring Cloud 5分钟搭建教程

假如想象 提交于 2019-12-01 05:37:54
1.前言: 1.1.以下内容是我通过阅读官方文档,并成功实践后的经验总结,希望能帮助你更快地理解和使用Spring Cloud. 1.2.默认读者已经熟练掌握Spring 全家桶,Spring Boot和注解开发. 1.3.陆续更新 2.开发环境: @Deprecated 2.1.开发工具:idea 2.2.开发环境:jdk1.7 2.3.Spring版本: 2.3.1.Spring Boot :1.4.0 release 2.3.2.Spring Cloud : Camden SR2 3.demo:(献给急于速成的各位大兄弟): demo地址: https://github.com/leoChaoGlut/spring-cloud-demo 3.1.服务注册demo: 3.1.1.创建工程模块,如图所示 3.1.2.将官方提供的maven依赖,加入pom. 如果想学习Java工程化、高性能及分布式、深入浅出。微服务、Spring,MyBatis,Netty源码分析的朋友可以加我的Java高级交流:787707172,群里有阿里大牛直播讲解技术,以及Java大型互联网技术的视频免费分享给大家。 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns

SpringCloud学习笔记(2)——Ribbon

浪子不回头ぞ 提交于 2019-12-01 05:37:41
参考SpringCloud官网第16、17章 16. Client Side Load Balancer: Ribbon Ribbon是一个客户端的负载均衡器,它提供对大量的HTTP和TCP客户端的访问控制。Feign也是用的Ribbon,所以在这一章你也可以用@FeignClient Ribbon的一个核心概念是命名的客户端。每个负载均衡器都是这个组件的全体的一部分,它们一起工作来连接到服务器,并且它们全体都有一个给定的名字。 Spring Cloud用RibbonClientConfiguration在ApplicationContext中创建一个新的全体,它包含一个ILoadBalancer、一个RestClient和一个ServerListFilter 16.1 How to Include Ribbon 如果想学习Java工程化、高性能及分布式、深入浅出。微服务、Spring,MyBatis,Netty源码分析的朋友可以加我的Java高级交流:854630135,群里有阿里大牛直播讲解技术,以及Java大型互联网技术的视频免费分享给大家。 16.2 Customizing the Ribbon Client Spring Cloud可以让你自己完全控制Ribbon客户端,通过用@RibbonClient来声明额外的配置。例如 在这个例子中