注意,本文还是对上一篇博客的延续,需要的配置,在前面的博客里面可以找到。 二、eureka集群的配置文件 和各自的启动类。 三、修改provider-8081项目的application.properties配置文件 图解eureka集群的关系。 ...
分类:
其他好文 时间:
2019-09-30 23:56:16
阅读次数:
245
二、eureka项目jar包的添加,和相关配置文件? 2.1 20190927-springcloud-eureka-management父级项目的 jar包 2.2 把provider-8081注册进eureka中 的文件配置? provide-8081启动类添加注解。 2.3 eureka服务的 ...
分类:
其他好文 时间:
2019-09-30 21:43:33
阅读次数:
94
[TOC] Vagrant是一款用来构建虚拟开发环境的外挂工具,可以简化虚拟机配置和管理。它底层支持VirtualBox、VMware、AWS等,非常适合使用php/python/ruby/java语言开发web应用,“代码在我机子上运行没有问题”这种说辞将成为历史。 1. 安装VirtualBox ...
分类:
其他好文 时间:
2019-09-30 11:14:25
阅读次数:
114
Spring Cloud Gateway注册到服务器中心(Consul) 准备环境 启动Consul(./consul agent dev)作为服务中心,默认是8500端口,然后启动spring cloud provider(9001端口)和spring cloud provider second( ...
分类:
编程语言 时间:
2019-09-30 09:28:33
阅读次数:
493
function copyArticle() { const range = document.createRange(); range.selectNode(document.getElementById('content')); const selection = window.getSelec ...
分类:
Web程序 时间:
2019-09-29 13:01:28
阅读次数:
135
今天早上,喜庆的更新VS2019,终于3.0正式版了呀~ 有小伙伴问了一句Autofac怎么接入,因为Startup.ConfigureServices不能再把返回值改成IServiceProvider了,原来的替换依赖注入容器就不可行了,我随口说了一下Host上面.UseServiceProvid ...
分类:
Web程序 时间:
2019-09-24 13:42:01
阅读次数:
261
Nhibernet 缓存 由于查询出来的数据和缓存关联,更新之后就算事务没执行提交操作,数据库依旧会更新,解决方法, 清空缓存,实例不和缓存关联,如下面标红代码 如果不添加标红语句,事务期间抛出异常,数据库的数据仍会修改 ...
分类:
数据库 时间:
2019-09-24 10:21:00
阅读次数:
131
### 泰坦尼克号海难生存人员预测 # 导入需要的库 import pandas as pd from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split fr... ...
分类:
编程语言 时间:
2019-09-22 21:43:20
阅读次数:
123
文档地址:https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html#sklearn.model_selection.train_test_split ...
分类:
其他好文 时间:
2019-09-22 11:11:40
阅读次数:
111
Given an array of integers, sort the elements in the array in ascending order. The selection sort algorithm should be used to solve this problem. Exam ...
分类:
其他好文 时间:
2019-09-22 10:56:30
阅读次数:
67