Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Line Runner not working in Spring-Boot 3.0.3 #34429

Closed
rayman245 opened this issue Mar 2, 2023 · 2 comments
Closed

Command Line Runner not working in Spring-Boot 3.0.3 #34429

rayman245 opened this issue Mar 2, 2023 · 2 comments
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue

Comments

@rayman245
Copy link

I have a class which implements CommandLineRunner, this was working up till spring boot 3.0.2, but does not seem to run in spring-boot 3.0.3.

import com.springdatamongodbexample.repository.UserMongoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Bootstrap implements CommandLineRunner {

    @Autowired
    UserMongoRepository mongoRepository;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("Hi");
    }
}

With 3.0.2
image

With 3.0.3
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 2, 2023
@philwebb
Copy link
Member

philwebb commented Mar 2, 2023

I suspect you're hitting #34379. Do you have a space or unusual character in your path?

@philwebb philwebb added the status: waiting-for-feedback We need additional information before we can continue label Mar 2, 2023
@rayman245
Copy link
Author

rayman245 commented Mar 3, 2023

Thanks @philwebb yes I can confirm this is related to #34379

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2023
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue for: external-project For an external project and not something we can fix and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants