Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照文档写了个demo启动报错,请问怎么解决? #22

Open
zolagz opened this issue Nov 13, 2022 · 1 comment
Open

按照文档写了个demo启动报错,请问怎么解决? #22

zolagz opened this issue Nov 13, 2022 · 1 comment

Comments

@zolagz
Copy link

zolagz commented Nov 13, 2022

接入阿里短信服务

引入的依赖是:

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.7.5</version>
	<relativePath/> <!-- lookup parent from repository -->
</parent>


	<dependency>
		<groupId>com.github.jackieonway.sms</groupId>
		<artifactId>sms-spring-boot-starter</artifactId>
		<version>0.0.3</version>
	</dependency>

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-11-13 20:18:36.182 ERROR 4817 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Field aliSmsService in cn.edu.fudan.light.rest.IndexController required a bean of type 'com.github.jackieonway.sms.service.AliSmsService' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.github.jackieonway.sms.service.AliSmsService' in your configuration.

@jackieonway
Copy link
Owner

您看下 sms-type: ali # 短信服务商,默认为ali 这个配置是不是配置成其他的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants