Springboot failed to start: Failed to configure a DataSource:.

failed to start the springboot project. The error is as follows

clipboard.png
checked the online materials and said that it was due to the addition of database-related components but no configuration of database connection and other information. However, when my project runs in idea, everything is normal and the database is configured. After it is packaged into jar through maven, the jar package reports this error, and then running in idea will also report this error
. Have you ever encountered such a problem?. O (please call for help) o, call for help

Sep.25,2021

check to see if your configuration file is included after being packaged into jar

Menu