问题标签 [configserver]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
35 浏览

java - 在字段上使用 @Value 注释以使 Spring Cloud 配置服务器加载的属性值不起作用

我正在尝试使用 spring 配置服务器在我的应用程序上加载其他属性。我希望能够在字段上使用@Value 注释从配置服务器文件中加载值,但我不知道为什么它不起作用。我正在使用 1.2.0 版的 spring cloud config client 和 io.spring.platform-2.0.8 (因为我有 Spring MVC,这里没有 springboot)

我得到的异常只是 IllegalArgumentException 并且消息是关于无法找到的占位符。当我尝试通过 org.springframework.core.env.Environment.getProperty(propertyName) 获取此属性时,一切正常,并且该值被简单地识别,所以我不知道为什么 @Value 不起作用

0 投票
1 回答
20 浏览

distributed-system - 什么是 Spring Cloud Config Server 一致模型?

配置服务器我可以选择zk、etcd、spring cloud config server、hashicrop consul。zk,etcd,consul 是强一致性。什么是spring cloud config server一致模型?如何实施?

0 投票
1 回答
30 浏览

apache - apache security - 检测和阻止探测 IP 地址

查看我的 apache 错误日志,/var/log/apache2/error_log我看到大量 IP 尝试访问不存在的文件。我将这些解释为机器人正在探测我的网络服务器,试图找到要利用的漏洞文件

文件如:

然后我去查看/var/www/目录并找到其中/cgi-bin/html子文件夹。/cgi-bin 文件夹是空的,但 /html 文件夹有一些文件,例如:400.shtml, 401.shtml, 403.shtml, 404.shtml甚至index.html. 然后我读到这些是 apache 创建和拥有的 - 这是真的吗?如果是这样......这个文件夹/文件的目的是什么?

是否有任何我可以使用的 apache...或 ConfigServer(防火墙)配置来检测这些探测 IP 并自动阻止它们?任何持续寻找多个不存在的文件的 IP - 暗示它不是正确访问正确 HTML 页面的用户(甚至不是机器人) - 都是恶意的,应该被阻止。

0 投票
0 回答
15 浏览

java - 无法从 git 读取 application.properties 到我正在处理的本地 configServer

configServer 中的 application.properties 文件附在下面
配置客户端很简单,只需用于 dev 和 prod env 的 application.properties。
即使添加了 uri,我也收到以下异常
org.eclipse.jgit.errors.TransportException: https ://github.com/pragathiindran/app-properties.git/ :未授权
org.springframework.cloud.config.server .environment.NoSuchRepositoryException:无法克隆或签出存储库:https ://github.com/pragathiindran/app-properties.git/