第六章 创建REST服务 创建Restful服务,那么前端框架可以使用Angular、React、Vue.js等适合自己的前端技术。 Angular参考书籍 Jeremy Wilken编写的《Angular in Action》以及Yakov Fain和Anton Moiseev编写的《Angula ...
分类:
编程语言 时间:
2020-07-18 19:45:22
阅读次数:
88
在配置hadoop集群时,时间同步是必须要做的,否则会出现各种意想不到的问题。 hadoop102 为 ntp server,hadoop103以及hadoop104 为ntp client(即需要同步时间机器) 1.全部机器都要安装ntp以及ntpdate sudo apt-get install ...
分类:
系统相关 时间:
2020-07-18 16:09:18
阅读次数:
143
一、新建工程 新建jansens-backup工程,这是一个独立运行于admin的服务模块,可以分开独立部署 二、添加依赖 在pom.xml文件中添加web、swagger、common依赖包。 <dependencies> <!-- spring boot --> <dependency> <gr ...
分类:
编程语言 时间:
2020-07-18 15:28:55
阅读次数:
110
Three Pairwise Maximums #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=2e5+3; typedef long long ll; const ll inf=1e18; ...
分类:
其他好文 时间:
2020-07-18 11:29:01
阅读次数:
89
原题目: Debug celsius converter Your friend is traveling abroad to the United States so he wrote a program to convert fahrenheit to celsius. Unfortunatel ...
分类:
其他好文 时间:
2020-07-18 11:23:22
阅读次数:
62
N children are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three groups (it i ...
分类:
其他好文 时间:
2020-07-18 00:42:12
阅读次数:
76
1 异常处理 REST framework提供了异常处理,我们可以自定义异常处理函数。 #统一接口返回 # 自定义异常方法,替换掉全局 # 写一个方法 # 自定义异常处理的方法 from rest_framework.views import exception_handler from rest_ ...
分类:
其他好文 时间:
2020-07-17 22:19:30
阅读次数:
127
研究了一段时间Spring Boot了准备向Spring Cloud进发,公司架构和项目也全面拥抱了Spring Cloud。在使用了一段时间后发现Spring Cloud从技术架构上降低了对大型系统构建的要求,使我们以非常低的成本(技术或者硬件)搭建一套高效、分布式、容错的平台,但Spring C ...
分类:
编程语言 时间:
2020-07-17 16:17:35
阅读次数:
79
Nginx是什么Nginx同Apache一样都是一种Web服务器。基于REST架构风格,以统一资源描述符(UniformResourcesIdentifier)URI或者统一资源定位符(UniformResourcesLocator)URL作为沟通依据,通过HTTP协议提供各种网络服务。正向代理在如今的网络环境下,我们如果由于技术需要要去访问国外的某些网站,此时你会发现位于国外的某网站我们通过浏览
分类:
其他好文 时间:
2020-07-16 18:20:19
阅读次数:
80
简介 当我们使用django-rest-framework框架时, 项目必定是前后端分离的, 那么前后端进行数据交互时, 常见的数据类型就是xml和json(现在主流的是json), 这里就需要我们django后台对json和python字典(dict)进行频繁的转化, 当然我们可以使用json模块 ...
分类:
其他好文 时间:
2020-07-16 00:25:06
阅读次数:
153