OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Connected to the target VM, address: '127.0.0.1:56923', transport: 'socket'
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
_ _ _
| | | | (_)
___| |______ __ _ __| |_ __ ___ _ _ __
/ _ | |______/ _` |/ _` | '_ ` _ \| | '_ \
| __| | | (_| | (_| | | | | | | | | | |
\___|_| \__,_|\__,_|_| |_| |_|_|_| |_|
:: Spring Boot :: (v2.6.4)
elAdmin- 2023-08-31 15:52:55 [main] INFO me.zhengjie.AppRun - Starting AppRun using Java 15 on MacBook-Pro-5.local with PID 91774 (/Users/iceewei/projects/fullstack/eladmin-mp/eladmin/eladmin-system/target/classes started by iceewei in /Users/iceewei/projects/fullstack/eladmin-mp/eladmin)
elAdmin- 2023-08-31 15:52:55 [main] INFO me.zhengjie.AppRun - The following 1 profile is active: "dev"
elAdmin- 2023-08-31 15:52:57 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8000 (http)
elAdmin- 2023-08-31 15:52:57 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8000"]
elAdmin- 2023-08-31 15:52:57 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
elAdmin- 2023-08-31 15:52:57 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.58]
elAdmin- 2023-08-31 15:52:57 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
elAdmin- 2023-08-31 15:52:57 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 2019 ms
Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
elAdmin- 2023-08-31 15:52:57 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appController' defined in file [/Users/iceewei/projects/fullstack/eladmin-mp/eladmin/eladmin-system/target/classes/me/zhengjie/modules/mnt/rest/AppController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appServiceImpl' defined in file [/Users/iceewei/projects/fullstack/eladmin-mp/eladmin/eladmin-system/target/classes/me/zhengjie/modules/mnt/service/impl/AppServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appMapper' defined in file [/Users/iceewei/projects/fullstack/eladmin-mp/eladmin/eladmin-system/target/classes/me/zhengjie/modules/mnt/mapper/AppMapper.class]: Cannot resolve reference to bean 'sqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionTemplate' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionTemplate' parameter 0; 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
elAdmin- 2023-08-31 15:52:57 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
elAdmin- 2023-08-31 15:52:58 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
elAdmin- 2023-08-31 15:52:58 [main] ERROR 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 (the profiles dev are currently active).
Disconnected from the target VM, address: '127.0.0.1:56923', transport: 'socket'
Process finished with exit code 1
Jdk1.8 环境,macos
我的配置文件。 配置文件里我改动了2处。第1处是mysql的3306端口,我改为了3350;第2处是mysql的password,我改为了root,其他没有改动。