macauyeah / spring-boot-demo

show some example about how to module spring boot data jpa project
0 stars 0 forks source link

spring-boot-web-api-data project couldn't start #1

Open bobzh39 opened 4 days ago

bobzh39 commented 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.

macauyeah commented 4 days ago

@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