Consul 的单节点注册 首先我们来创建一个服务提供者,就是一个普通的 Spring Boot 项目,添加如下依赖: 项目创建好后,添加如下配置: # 给服务起个别名 spring.application.name=consul-provider server.port=2000 # Consul ...
分类:
其他好文 时间:
2020-07-26 23:22:41
阅读次数:
118
这个是因为没有将requires_grad设为True,l=LOSS(out,label)中的l默认是requires_grad为false,这个l其实也是一个张量Tensor类型,将其的requires_grad改为True后,使用backward函数就可以得到requires_grad为True ...
分类:
其他好文 时间:
2020-07-26 22:55:24
阅读次数:
279
SpringBoot的配置文件 SpringBoot配置文件类型 SpringBoot配置文件的类型和作用 SpringBoot是基于约定的,所以很多配置都有默认值,但如果想使用自己的配置替换默认配置的话,就可以使用application.properties或者application.yml(ap ...
分类:
编程语言 时间:
2020-07-26 19:49:56
阅读次数:
85
Lightbend推出的微服务框架Lagom,与Akka Typed自然耦合,为实现Domain-Driven Designed Distributed Application提供了完整的解决方案。 ...
分类:
其他好文 时间:
2020-07-26 19:04:18
阅读次数:
102
什么是数据库系统? 数据库系统=数据库(DataBase(DB))+数据库管理系统(Database Management System (DBMS))+数据库应用程序(Database Application (DBA)) 数据库:为了满足一个机构的信息需求而设计的逻辑上相关的可共享的数据及数据描 ...
分类:
数据库 时间:
2020-07-26 18:58:29
阅读次数:
82
1.请说一下OSI 网络分层模型是怎样分层的? 应用层、表示层、会话层、传输层、网络层、数据链路层、物理层 application layer、presentation layer、session layer、transport layer、network layer、data link layer ...
分类:
Web程序 时间:
2020-07-26 16:01:19
阅读次数:
168
客户端通信是DLL 文件,看需求可以自己编译到exe上 下面是DLL调用过程 客户端代码 // DriveDll.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include <windo ...
分类:
其他好文 时间:
2020-07-26 15:25:12
阅读次数:
107
RabbitMq保证消息可靠性之确认模式 前提 完成 SpringBoot 整合 RabbitMq 中的Topic通配符模式 一、更改Producer工程的application.yml文件 spring: rabbitmq: host: localhost port: 5672 virtual-h ...
分类:
其他好文 时间:
2020-07-26 01:04:06
阅读次数:
114
RabbitMq保证消息可靠性之回退模式 前提 完成 SpringBoot 整合 RabbitMq 中的Topic通配符模式 一、更改Producer工程的application.yml文件 spring: rabbitmq: host: localhost port: 5672 virtual-h ...
分类:
其他好文 时间:
2020-07-26 01:03:17
阅读次数:
81
RabbitMq高级特性之消费端限流 一丶首先部署SpringBoot框架 完成 SpringBoot 整合 RabbitMq 中的Topic通配符模式 二丶在 resource资源文件夹里application.yml文件中 添加配置 spring: rabbitmq: listener: sim ...
分类:
其他好文 时间:
2020-07-26 01:02:48
阅读次数:
134