上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 232 下一页
摘要: 大家知道 spring boot 项目是自带tomcat 的,但是我们有时候是需要把项目打包成war 然后放到独立的tomcat中运行的,这个时候我们就需要将它自带的tomcat给排除开,这时候我们就可以使用<scope>provided</scope>来实现,我们在pom文件中这样写: <depe 阅读全文
posted @ 2020-09-28 10:07 牧之丨 阅读(689) 评论(0) 推荐(0)
摘要: 【转载】 https://coder4.com/homs_online/spring-boot/sb-thrift.html Spring Boot自动配置简介 在介绍RPC之前,我们先来学习下Spring Boot的自动配置。 我们前面已经提到:Spring Boot来源于Spring,并且做了众 阅读全文
posted @ 2020-09-27 11:16 牧之丨 阅读(1467) 评论(0) 推荐(0)
摘要: 1、Types Thrift类型系统包括预定义基本类型,用户自定义结构体,容器类型,异常和服务定义 (1) 基本类型 bool: 布尔类型,占一个字节 byte: 有符号字节 i16:16位有符号整型 i32:32位有符号整型 i64:64位有符号整型 double:64位浮点数 string:未知 阅读全文
posted @ 2020-09-25 23:42 牧之丨 阅读(701) 评论(0) 推荐(0)
摘要: http://anruence.com/2018/06/27/enum-thrift/ 问题 在用注解定义的Thrift enum 中,如果客户端端和服务端的enum定义不同,比如调换了enum中的枚举值的顺序,就会发生调用端发送的枚举参数与服务端解析得到的枚举参数不一致的问题。 猜想 java 中 阅读全文
posted @ 2020-09-25 23:31 牧之丨 阅读(3547) 评论(0) 推荐(0)
摘要: 目录: 概述 下载配置 基本概念 数据类型 服务端编码基本步骤 客户端编码基本步骤 数据传输协议 实例演示(java) thrift生成代码 实现接口Iface TSimpleServer服务模型 TThreadPoolServer 服务模型 TNonblockingServer 服务模型 THsH 阅读全文
posted @ 2020-09-25 19:22 牧之丨 阅读(258) 评论(0) 推荐(0)
摘要: Start Xcode, select "Preferences -> Locations". Chances are that your Command Line Tools are not set. Select the suggested Xcode-tools location and yo 阅读全文
posted @ 2020-09-25 12:31 牧之丨 阅读(1180) 评论(0) 推荐(0)
摘要: I am using CentOS and had same problem. I changed /usr/local/bin/composer to /usr/bin/composer and it worked. Run below command : curl -sS https://get 阅读全文
posted @ 2020-09-25 11:44 牧之丨 阅读(1735) 评论(0) 推荐(0)
摘要: 安装thrift时,报错: Bison version 2.5 or higher must be installed on the system! 使用brew install bison 安装新版的bison $ brew list bison/usr/local/Cellar/bison/3. 阅读全文
posted @ 2020-09-25 11:18 牧之丨 阅读(1095) 评论(0) 推荐(0)
摘要: 先先看一下什么是makefile makefile定义了一系列的规则来指定,哪些文件需要先编译,哪些文件需要后编译,哪些文件需要重新编译,甚至于进行更复杂的功能操作,因为 makefile就像一个Shell脚本一样,其中也可以执行操作系统的命令。 makefile带来的好处就是--“自动化编译”,一 阅读全文
posted @ 2020-09-22 14:18 牧之丨 阅读(1298) 评论(0) 推荐(0)
摘要: 我有以下课程: import java.text.NumberFormat; public static class NF { public static NumberFormat formatShares = NumberFormat.getInstance(); public static Nu 阅读全文
posted @ 2020-09-22 00:03 牧之丨 阅读(276) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 232 下一页