error when run springboot jar in Mac: To display the conditions report re-run your application with 'debug'...

created at 08-07-2021 views: 2

error message

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-08-06 13:59:03.887 ERROR 25750 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

Analysis focus:

o.s.b.d.LoggingFailureAnalysisReporter   

Reason

There is a problem with the logger. Check that the path configured in the properties of your logger is /home/xxx/. Since there is no /home/ directory in the mac directory, although the packaging is successful, errors will occur when running, and even if there is a /home/ directory in centos, it will not run.

Solution

modify the logger configuration directory in mac to /opt/xxx (the opt directory in centos), and then grant read and write permissions to the /opt/xxx directory in mac: 

sudo chmod +x 777 /opt/xxx

last: for error To display the conditions report re-run your application with'debug' enabled. There are many reasons for reporting such an error, depending on the line behind it to find the specific cause of the error.

Please log in to leave a comment.