java 版本: 17
pigx 版本: 5.3
架构类型: 微服务
2024-04-12 09:13:31.069 WARN 2364 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mobileController' defined in file [D:\work\rhy-module-x\rhy-account-center\rhy-accountCenter\rhy-accountCenter-biz\target\classes\com\rongheyun\rhy\accountCenter\controller\MobileController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'mobileServiceImpl' defined in file [D:\work\rhy-module-x\rhy-account-center\rhy-accountCenter\rhy-accountCenter-biz\target\classes\com\rongheyun\rhy\accountCenter\service\impl\MobileServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 6: No qualifying bean of type 'io.springboot.sms.core.SmsClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2024-04-12 09:13:31.119 INFO 2364 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2024-04-12 09:13:31.129 INFO 2364 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2024-04-12 09:13:31.178 INFO 2364 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-04-12 09:13:31.372 ERROR 2364 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Parameter 6 of constructor in com.rongheyun.rhy.accountCenter.service.impl.MobileServiceImpl required a bean of type 'io.springboot.sms.core.SmsClient' that could not be found.
Action:
Consider defining a bean of type 'io.springboot.sms.core.SmsClient' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:36515', transport: 'socket'
Process finished with exit code 1
工单正在为您分配处理, 可扫码接收此工单进度通知
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
JAVA17 版本, 用适配 3.0 的版本试一下
重新 mvn clean install 后 也不成功
改成 3.0.0, IDEA reload
via load-balancing.
2024-04-12 11:10:04.186 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-upms-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:04.780 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-accountCenter-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:05.377 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-upms-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:06.039 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-accountCenter-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:07.250 INFO 41500 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2024-04-12 11:10:17.250 INFO 41500 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2024-04-12 11:10:20.724 WARN 41500 --- [ main] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.rongheyun.rhy.common.data.mybatis.MybatisPlusConfiguration
2024-04-12 11:10:21.368 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-upms-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:29.812 WARN 41500 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.rongheyun.rhy.accountCenter.entity.SysUserPost".
2024-04-12 11:10:29.814 WARN 41500 --- [ main] c.r.r.c.d.d.DataScopeSqlInjector : class com.rongheyun.rhy.accountCenter.entity.SysUserPost ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2024-04-12 11:10:30.221 WARN 41500 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.rongheyun.rhy.accountCenter.entity.SysUserRole".
2024-04-12 11:10:30.222 WARN 41500 --- [ main] c.r.r.c.d.d.DataScopeSqlInjector : class com.rongheyun.rhy.accountCenter.entity.SysUserRole ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
2024-04-12 11:10:43.151 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-accountCenter-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:45.788 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-account-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:46.477 INFO 41500 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : For 'rhy-self-biz' URL not provided. Will try picking an instance via load-balancing.
2024-04-12 11:10:49.443 WARN 41500 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mobileController' defined in file [D:\work\rhy-module-x\rhy-account-center\rhy-accountCenter\rhy-accountCenter-biz\target\classes\com\rongheyun\rhy\accountCenter\controller\MobileController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'mobileServiceImpl' defined in file [D:\work\rhy-module-x\rhy-account-center\rhy-accountCenter\rhy-accountCenter-biz\target\classes\com\rongheyun\rhy\accountCenter\service\impl\MobileServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 5: Error creating bean with name 'io.springboot.sms.SmsAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'aliyun-io.springboot.sms.SmsProperties': Could not bind properties to 'SmsProperties' : prefix=aliyun, ignoreInvalidFields=false, ignoreUnknownFields=true
2024-04-12 11:10:49.508 INFO 41500 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2024-04-12 11:10:49.536 INFO 41500 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2024-04-12 11:10:49.861 INFO 41500 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-04-12 11:10:49.944 ERROR 41500 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Failed to bind properties under 'aliyun.sms.accesskeyid' to io.springboot.sms.core.SmsTemplate:
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [io.springboot.sms.core.SmsTemplate]
Action:
Update your application's configuration
Disconnected from the target VM, address: '127.0.0.1:47560', transport: 'socket'
Process finished with exit code 1
配置文件请按文档格式配置
加入 3.0.0 引用后,启动特别慢
可以正常启动,发信息了
登录 后才可以发表评论