4.5K Star 42.9K Fork 12.6K

GVPlengleng / pig

 / 详情

5.3 发送短信引入报错,发送短信引入报错

已完成
成员
创建于  
2024-04-12 09:22

环境信息

  • 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

评论 (8)

Github Action 创建了任务

工单正在为您分配处理, 可扫码接收此工单进度通知

JAVA17 版本, 用适配 3.0 的版本试一下

1712889073

重新 mvn clean install 后 也不成功

1712890507

改成 3.0.0, IDEA reload

1712890471

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

1712891742

配置文件请按文档格式配置

加入 3.0.0 引用后,启动特别慢

可以正常启动,发信息了

lbw 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
393021 springcloud777 1591517090 410595 log4j 1591768487
Java
1
https://gitee.com/log4j/pig.git
git@gitee.com:log4j/pig.git
log4j
pig
pig

搜索帮助