使用特定端口在eureka中注册spring boot https应用程序(Register spring boot https application in eureka with specific port)
我正在尝试注册仅通过https提供的应用程序。 我有正确配置的问题,尤里卡仪表板中显示的链接不正确。 我尝试了一些配置,但我无法获得正确的效果,即在Eureka中使用仪表板链接。
我的基本配置。
server: port: 9999 context-path: /ctx ssl: key-store: classpath:keystore.jks key-store-password: 'kspass' key-password: 'kpass' keyAlias: ssl spring: application: name: app-ctx cloud: loadbalancer: retry: enabled: true eureka: client: serviceUrl: defaultZone: https://localhost:8761/eureka/ instance: hostname: localhost secure-port-enabled: true non-secure-port-enabled: false secure-port: ${server.port} health-check-url: https://${eureka.hostname}:XYZ/ctx/health status-page-url: https://${eureka.hostname}:XYZ/ctx/info home-page-url: https://${eureka.hostname}:XYZ/ctx
我尝试过以下版本的运行状况/状态/主页URL:
没有端口的绝对URL
示例:health-check-url:https:// $ {eureka.hostname} / ctx / health
结果 :https:// localhost / ctx / info
替换$ {server.port}的绝对URL
示例:health-check-url:https:// $ {eureka.hostname}:$ {server.port} / ctx / health)
结果 :$ {server.port}未解析,仪表板中的url为:https:// localhost:$ {server.port} / ctx / info
相对URL
示例:health-check-url-path:/ ctx / health
结果 :http:// localhost:9999 / ctx / info,没有https。
最后一个非常接近我的期望,但没有https 。
I am trying to register an application available through https only. I have problem with correct configuration and links displayed in eureka's dashboard are not correct. I have tried some configurations but I can't get the right effect i.e. working dashboard links in Eureka.
My base configuration.
server: port: 9999 context-path: /ctx ssl: key-store: classpath:keystore.jks key-store-password: 'kspass' key-password: 'kpass' keyAlias: ssl spring: application: name: app-ctx cloud: loadbalancer: retry: enabled: true eureka: client: serviceUrl: defaultZone: https://localhost:8761/eureka/ instance: hostname: localhost secure-port-enabled: true non-secure-port-enabled: false secure-port: ${server.port} health-check-url: https://${eureka.hostname}:XYZ/ctx/health status-page-url: https://${eureka.hostname}:XYZ/ctx/info home-page-url: https://${eureka.hostname}:XYZ/ctx
I have tried following versions of health/status/home URLs:
Absolute URLs without port
Example: health-check-url: https://${eureka.hostname}/ctx/health
Result: https://localhost/ctx/info
Absolute URLs with ${server.port} replacement
Example: health-check-url: https://${eureka.hostname}:${server.port}/ctx/health)
Result: ${server.port} not resolved, url in dashboard is: https://localhost:${server.port}/ctx/info
Relative URLs
Example: health-check-url-path: /ctx/health
Result: http://localhost:9999/ctx/info, no https.
Last one is quite close to my expectations, but there is no https.
原文:https://stackoverflow.com/questions/44804371
最满意答案
您可能需要查看SIFT算法 。
You might want to look into the SIFT algorithm.
相关问答
更多-
LINUX 如何查看JPG文件[2022-06-13]
find -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
GAN网络的完美任务。 检查此项目,例如CycleGAN 。 Perfect task for GAN networks. Check this project for example CycleGAN.
-
我认为你必须使用setMapping:forKeyPath:设置映射,然后才能访问它下面的密钥路径。 此外,您在setMapping方法中使用了字符串@"news_items" 。 但是,在您的JSON Feed中,它会显示@"news_posts" 。 I think you have to set the mapping with setMapping:forKeyPath: before accessing the key paths below it. Also, you have used the ...
-
是的,括号中的第一个数字是密钥,您可以将其视为地址。 其次是价值。 钥匙是独一无二的,就像你家的地址一样,但价值可以是任何东西。 Yes, the first number in the parentheses is the Key, you can think of it as the address. The second is the Value. The Key is unique, just like your home's address, but the Value can be anythi ...
-
我不同意链接的文章。 虽然我同意域模型和持久性模型之间的关注点不同,但ORM的整个目的是在域模型和持久性模型之间进行映射。 由于ORM应该提供该映射,因此创建额外的类层次结构以便于映射是过度的,并且可能导致类似您所描述的问题。 领域模型类似于数据模型的事实确实远远不仅仅是巧合。 相反,它们都代表同一领域的方面,因此应具有高度的对应性。 ORM旨在解决对象模型和对应关系模型之间的不匹配问题。 在某些情况下,映射变得很难,但在NHibernate中,可以通过实现组件映射的自定义用户类型来解决这些问题。 I di ...
-
您可能需要查看SIFT算法 。 You might want to look into the SIFT algorithm.
-
RestKit - 无法找到keyPath的对象映射:''(RestKit - Could not find an object mapping for keyPath: '')[2022-06-07]
KeyPath不是json文件的名称,而是RestKit的起点: { "contact": { "nom": "whatever nom is", "prenom": "same for prenom", // ... } // ... } 在这种情况下,“contact”将是您的keyPath: [manager.mappingProvider setMapping:contactMapping forKeyPath:@"conta ... -
这是重建对象的正确程序。 去年我在大学的一个项目上研究过这个话题。 我的经验是用手移动相机重建物体并不容易。 匹配 首先,你必须考虑inteset点的匹配。 SURF和SIFT是这一点的良好匹配方法。 当物体移动小于15°时,您可以考虑使用USURF,这比普通的SURF快一点(有关详细信息,请参阅SURF论文)。 在我们的项目中,我们决定使用OpenCV中的光流,它看起来有点慢,但对异常值更强。 您的对象只是旋转,所以您也可以考虑使用它。 矩阵的评估 接下来是评估新相机矩阵的结果。 你有可能找出物体旋转了多 ...
-
以下解决方案找到B中零所在的所有位置(T0),以及可以去的地方(T1)。 然后它循环遍历所有这些排列,产生每个映射。 A = [0 0 0 1 1 0 1 0]; B = [1 1 0 0 0 0 0 1]; l = length(A); T0 = perms(find(B==0)); % all targets for zeroes T1 = perms(find(B==1)); % all targets for ones s0 = find(A==0); % source of zeroes s ...