spring-cloud-config-server - Не удалось объединить пульт для главного удаленного: null - PullRequest
0 голосов
/ 06 апреля 2020

Я разработал конфигурационный сервер с использованием Spring.

Мое приложение. java is

@EnableConfigServer
@SpringBootApplication

public class SpringConfigServerApplication {

public static void main(String[] args) {
    SpringApplication.run(SpringConfigServerApplication.class, args);
}}

Мой bootstrap .properties file

#Server port
server.port = 8888

#Git repo location
spring.cloud.config.server.git.uri=file://Users/dineth/Documents/MyProjects/sample-git-sources/config-server-repo

Мой файл config-server-client-development.properties

msg = Hello world - this is from config server – Development environment.

Я переключил git init, git add and git Команды коммита для добавления моего файла в локальный git.

Но когда я запускаю приложение и go в http://localhost: 8888 / client-config / development

В нем не отображается значение моего свойства.

// 20200406064430
// http://localhost:8888/client-config/development

{
"name": "client-config",
"profiles": [
"development"
],
"label": null,
"version": "4f989b109d1e6d77c8f44a664b275305ddddf014",
"state": null,
"propertySources": [

]
}

И в журнале приложений написано:

WARN 2125 --- [nio-8888-exec-2] .c.s.e.MultipleJGitEnvironmentRepository : Could not merge remote for master remote: null

Неужели я пропустить что-нибудь?

Я использую macOS

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...