2023-03-18 14:45:39.429 INFO 16024 --- [ main] c.s.DormitorymsSpringApplication : Starting DormitorymsSpringApplication using Java 1.8.0_301 on 情兽 with PID 16024 (D:\fox-dowm\新建文件夹\dormitoryms_spring\target\classes started by 小情兽 in D:\fox-dowm\新建文件夹\dormitoryms_spring)
2023-03-18 14:45:39.435 INFO 16024 --- [ main] c.s.DormitorymsSpringApplication : No active profile set, falling back to 1 default profile: "default"
2023-03-18 14:45:42.170 INFO 16024 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-03-18 14:45:42.185 INFO 16024 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-03-18 14:45:42.185 INFO 16024 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.63]
2023-03-18 14:45:42.423 INFO 16024 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-03-18 14:45:42.424 INFO 16024 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2914 ms
2023-03-18 14:45:42.534 WARN 16024 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dormitoryAdminController': Unsatisfied dependency expressed through field 'dormitoryAdminService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dormitoryAdminServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dormitoryAdminMapper' defined in file [D:\fox-dowm\新建文件夹\dormitoryms_spring\target\classes\com\southwind\mapper\DormitoryAdminMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2023-03-18 14:45:42.538 INFO 16024 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-03-18 14:45:42.560 INFO 16024 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-03-18 14:45:42.589 ERROR 16024 --- [ 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).