Skip to content
The Chat Archive
gpt-3.5-turbo-0613· OpenAI WildChat-4.8M (AI2)

Cannot resolve configuration property 'spring.application.baseUrl'

  1. User

    Cannot resolve configuration property 'spring.application.baseUrl'

  2. Assistant

    The error message suggests that the configuration property 'spring.application.baseUrl' cannot be resolved or found.

    To resolve this issue, you need to check the configuration settings and make sure that the property 'spring.application.baseUrl' is defined in the appropriate configuration file (typically application.properties or application.yml).

    If the property is already defined, ensure that it is spelled correctly, and the configuration file is being loaded correctly by the Spring application.

    If the property is not defined, you can add it to the configuration file with the desired value. For example, in application.properties:

    spring.application.baseUrl=http://example.com
    

    Remember to restart the Spring application after making any changes to the configuration files.

  3. User

    что за ошибка Cannot resolve configuration property 'spring.application.baseUrl'

  4. Assistant

    Ошибка "Cannot resolve configuration property 'spring.application.baseUrl'" означает, что свойство конфигурации 'spring.application.baseUrl' не может быть разрешено или найдено.

    Для решения этой проблемы вам необходимо проверить настройки конфигурации и убедиться, что свойство 'spring.application.baseUrl' определено в соответствующем файле конфигурации (обычно application.properties или application.yml).

    Если свойство уже определено, убедитесь, что оно правильно написано, и файл конфигурации правильно загружается в приложении Spring.

    Если свойство не определено, вы можете добавить его в файл конфигурации со значением по вашему выбору. Например, в application.properties:

    spring.application.baseUrl=http://example.com
    

    Не забудьте перезапустить приложение Spring после внесения любых изменений в файлы конфигурации.

  5. User

    у меня указано так spring:

    application: name: tkb baseUrl: ${BASE_URL}

  6. Assistant

    Оказывается, ваша конфигурация имеет неправильный синтаксис. Вместо использования двукратной подстановки переменных с использованием ${}, вы можете использовать синтаксис с точкой для доступа к вложенным свойствам.

    Попробуйте изменить вашу конфигурацию следующим образом:

    spring:
      application:
        name: tkb
      baseUrl: ${BASE_URL}
    

    После этого, убедитесь, что переменная окружения BASE_URL установлена, либо определите ее в файлах свойства.