Open bobzh39 opened 4 days ago
version: java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
2024-10-08T16:45:28.465+08:00 ERROR 10384 --- [springbootwebapidata] [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
A component required a bean of type 'io.github.macauyeah.springboot.tutorial.springbootwebapidata.repo.UserRepo' that could not be found.
Action:
Consider defining a bean of type 'io.github.macauyeah.springboot.tutorial.springbootwebapidata.repo.UserRepo' in your configuration.
@bobzh39 how do you run the program ? Did you try the maven build command?
cd spring-boot-tutorial/spring-boot-web-api-data/ mvn clean compile spring-boot:run
version: java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
2024-10-08T16:45:28.465+08:00 ERROR 10384 --- [springbootwebapidata] [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
A component required a bean of type 'io.github.macauyeah.springboot.tutorial.springbootwebapidata.repo.UserRepo' that could not be found.
Action:
Consider defining a bean of type 'io.github.macauyeah.springboot.tutorial.springbootwebapidata.repo.UserRepo' in your configuration.