|
@@ -2,6 +2,7 @@ package org.dromara.common.sms.config;
|
|
|
|
|
|
|
|
import org.dromara.common.redis.config.RedisConfiguration;
|
|
import org.dromara.common.redis.config.RedisConfiguration;
|
|
|
import org.dromara.common.sms.core.dao.PlusSmsDao;
|
|
import org.dromara.common.sms.core.dao.PlusSmsDao;
|
|
|
|
|
+import org.dromara.common.sms.handler.SmsExceptionHandler;
|
|
|
import org.dromara.sms4j.api.dao.SmsDao;
|
|
import org.dromara.sms4j.api.dao.SmsDao;
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
@@ -21,4 +22,12 @@ public class SmsAutoConfiguration {
|
|
|
return new PlusSmsDao();
|
|
return new PlusSmsDao();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 异常处理器
|
|
|
|
|
+ */
|
|
|
|
|
+ @Bean
|
|
|
|
|
+ public SmsExceptionHandler smsExceptionHandler() {
|
|
|
|
|
+ return new SmsExceptionHandler();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|