Skip to content

how to pass spring.config.location argument #608

Description

@angel-git

on spring boot 2.7.3 if i try to run a boot application with --spring.config.location=app.properties (https://docs.spring.io/spring-boot/docs/2.7.3/reference/htmlsingle/#features.external-config.files) i get the following error:

Caused by: org.springframework.shell.CommandNotFound: No command found for '--spring.config.location=app.properties'
	at org.springframework.shell.Shell.evaluate(Shell.java:231)
	at org.springframework.shell.Shell.run(Shell.java:140)
	at org.springframework.shell.jline.NonInteractiveShellRunner.run(NonInteractiveShellRunner.java:104)
	at org.springframework.shell.DefaultShellApplicationRunner.run(DefaultShellApplicationRunner.java:65)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:762)

The config properties are loaded fine but also tries to parse it as command, is there any way to tell shell to ignore that "command" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions