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
With 3.0.3
Comment From: philwebb
I suspect you're hitting #34379. Do you have a space or unusual character in your path?
Comment From: rayman245
Thanks @philwebb yes I can confirm this is related to #34379