Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the simple shh way to configure config in Java

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

What is the simple way to configure shh for config in Java? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

1. Add dependencies to create a project:

Org.springframework.bootspring-boot-starter-actuatororg.springframework.cloudspring-cloud-config-serverorg.springframework.bootspring-boot-starter-web

2. Yml file configuration:

Server:port: 8888spring:application:name: cloud-servercloud:config:server:git:uri: "git@gitlab.guangbao-uni.com:wangchaojie/SpringCloudConfig.git" search-paths:respo

3. Ssh configuration of gitlab:

In the ~ / .ssh directory, generate the public key and key, set the key to the gitlab server, and set the content in the config file

4. In the SpringCloudConfig project on git, the configuration file named config-client-dev.properties in the respo directory.

The answer to the question about the simple configuration of config in Java shh is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report