一、该问题的重现步骤是什么?
2.
3.
D:\java_home\jdk1.8.0_131\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54002,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -javaagent:C:\Users\zhouwenzhe\AppData\Local\JetBrains\IntelliJIdea2021.1\captureAgent\debugger-agent.jar -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.1\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\zhouwenzhe\AppData\Local\Temp\idea_classpath895523730 com.hr.pbgl.HrPbglApplication
已连接到目标 VM, 地址: ''127.0.0.1:54002',传输: '套接字''
----启动中,读取到的环境变量:[dev],jar地址:[/D:/ideaWorkSpace/mr_hr/BladeX-Biz/blade-service/mrhr-pbgl/target/classes/]----
2021-10-25 11:18:41.802 INFO 12332 --- [kground-preinit] o.h.validator.internal.util.Version : HV000001: Hibernate Validator 6.0.22.Final
______ _ _ ___ ___
| ___ \| | | | \ \ / /
| |_/ /| | __ _ __| | ___ \ V /
| ___ \| | / _` | / _` | / _ \ > <
| |_/ /| || (_| || (_| || __/ / . \
\____/ |_| \__,_| \__,_| \___|/__/ \__\
:: BladeX :: mrhr-pbgl:dev :: Running SpringBoot 2.2.13.RELEASE ::
2021-10-25 11:18:42.689 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 29 ms to scan 1 urls, producing 3 keys and 6 values
2021-10-25 11:18:42.713 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 11 ms to scan 1 urls, producing 4 keys and 9 values
2021-10-25 11:18:42.726 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 9 ms to scan 1 urls, producing 3 keys and 10 values
2021-10-25 11:18:42.913 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 183 ms to scan 300 urls, producing 0 keys and 0 values
2021-10-25 11:18:42.922 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 9 ms to scan 1 urls, producing 1 keys and 5 values
2021-10-25 11:18:42.935 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 10 ms to scan 1 urls, producing 1 keys and 7 values
2021-10-25 11:18:42.947 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 9 ms to scan 1 urls, producing 2 keys and 8 values
2021-10-25 11:18:43.114 INFO 12332 --- [ main] org.reflections.Reflections : Reflections took 164 ms to scan 300 urls, producing 0 keys and 0 values
2021-10-25 11:18:44.698 WARN 12332 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[mrhr-pbgl] & group[DEFAULT_GROUP]
2021-10-25 11:18:44.701 WARN 12332 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[mrhr-pbgl.yaml] & group[DEFAULT_GROUP]
2021-10-25 11:18:44.704 WARN 12332 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[mrhr-pbgl-dev.yaml] & group[DEFAULT_GROUP]
2021-10-25 11:18:44.704 INFO 12332 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-mrhr-pbgl-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-mrhr-pbgl.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-mrhr-pbgl,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}]
2021-10-25 11:18:44.717 INFO 12332 --- [ main] com.hr.pbgl.HrPbglApplication : The following profiles are active: dev
2021-10-25 11:18:44.877 WARN 12332 --- [ main] o.s.c.c.u.SpringFactoryImportSelector : More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration]
2021-10-25 11:18:46.523 INFO 12332 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-10-25 11:18:46.525 INFO 12332 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-10-25 11:18:46.559 INFO 12332 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 23ms. Found 0 Redis repository interfaces.
2021-10-25 11:18:46.632 WARN 12332 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
2021-10-25 11:18:46.645 WARN 12332 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.
2021-10-25 11:18:46.734 WARN 12332 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.hr.pbgl]' package. Please check your configuration.
2021-10-25 11:18:46.751 WARN 12332 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'bladeMapper' and 'org.springblade.core.mp.mapper.BladeMapper' mapperInterface. Bean already defined with the same name!
2021-10-25 11:18:46.842 INFO 12332 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=7000c2a1-2c0b-3a42-b52c-abc3411d6723
2021-10-25 11:18:46.845 INFO 12332 --- [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.
2021-10-25 11:18:46.845 INFO 12332 --- [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.
INFO: Sentinel log output type is: file
INFO: Sentinel log charset is: utf-8
INFO: Sentinel log base directory is: C:\Users\zhouwenzhe\logs\csp\
INFO: Sentinel log name use pid is: false
2021-10-25 11:18:47.694 WARN 12332 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2021-10-25 11:18:47.712 INFO 12332 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2021-10-25 11:18:47.712 INFO 12332 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2978 ms
2021-10-25 11:18:47.880 WARN 12332 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2021-10-25 11:18:47.880 INFO 12332 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-10-25 11:18:47.887 INFO 12332 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@1b0fc8b
2021-10-25 11:18:48.030 INFO 12332 --- [ main] o.s.b.a.e.web.ServletEndpointRegistrar : Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint
2021-10-25 11:18:48.206 WARN 12332 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pbglJkbglController' defined in file [D:\ideaWorkSpace\mr_hr\BladeX-Biz\blade-service\mrhr-pbgl\target\classes\com\hr\pbgl\jqye\controller\PbglJkbglController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pbglJkbglServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pbglJkbglMapper' defined in file [D:\ideaWorkSpace\mr_hr\BladeX-Biz\blade-service\mrhr-pbgl\target\classes\com\hr\pbgl\jqye\mapper\PbglJkbglMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$bd9818b4]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybatisPlusInterceptor' defined in class path resource [org/springblade/core/mp/config/MybatisPlusConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataScopeConfiguration' defined in URL [jar:file:/D:/java_home/bladex/apache-maven-3.3.9%202/apache-maven-3.3.9/repository/org/springblade/blade-starter-datascope/2.8.2.RELEASE/blade-starter-datascope-2.8.2.RELEASE.jar!/org/springblade/core/datascope/config/DataScopeConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jdbcTemplate' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/JdbcTemplateConfiguration.class]: Unsatisfied dependency expressed through method 'jdbcTemplate' 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 suitable jdbc url
2021-10-25 11:18:48.218 INFO 12332 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-10-25 11:18:48.224 ERROR 12332 --- [ 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 suitable jdbc url
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).
二、你期待的结果是什么?实际看到的又是什么?
完美解决
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
windows10,2.8.2商业版
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端