Discuss / Java / 启动UI 失败,怎么解决呢?

启动UI 失败,怎么解决呢?

Topic source

足球男孩

#1 Created at ... [Delete] [Delete and Lock User]

2023-01-11T12:40:58.994+08:00  INFO 26629 --- [           main] com.itranswarp.exchange.UIApplication    : Starting UIApplication using Java 17.0.1 with PID 26629 (/Users/houcaihua/Downloads/warpexchange-step-1/ui/target/classes started by houcaihua in /Users/houcaihua/Downloads/warpexchange-step-1)

2023-01-11T12:40:58.996+08:00  INFO 26629 --- [           main] com.itranswarp.exchange.UIApplication    : No active profile set, falling back to 1 default profile: "default"

2023-01-11T12:40:59.728+08:00  INFO 26629 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=d7afa8c6-57f7-3ee7-823c-872f93d71765

2023-01-11T12:41:00.020+08:00  INFO 26629 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)

2023-01-11T12:41:00.028+08:00  INFO 26629 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2023-01-11T12:41:00.028+08:00  INFO 26629 --- [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.1]

2023-01-11T12:41:00.110+08:00  INFO 26629 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2023-01-11T12:41:00.110+08:00  INFO 26629 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1085 ms

2023-01-11T12:41:00.402+08:00  WARN 26629 --- [           main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.pebbletemplates.boot.autoconfigure.PebbleServletWebConfiguration

2023-01-11T12:41:00.407+08:00  WARN 26629 --- [           main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: io.pebbletemplates.boot.autoconfigure.PebbleAutoConfiguration

2023-01-11T12:41:00.454+08:00  WARN 26629 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class

2023-01-11T12:41:00.457+08:00  INFO 26629 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]

2023-01-11T12:41:00.481+08:00  INFO 26629 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.

2023-01-11T12:41:00.495+08:00 ERROR 26629 --- [           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).

进程已结束,退出代码1

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

step-1只能启动config,step-11才能启动ui


  • 1

Reply