Java &引用;应用程序启动失败";spring引导启动程序邮件使用后
想要实现基于Java &引用;应用程序启动失败";spring引导启动程序邮件使用后,java,spring,spring-boot,email,smtp,Java,Spring,Spring Boot,Email,Smtp,想要实现基于springbootstartermail 添加依赖项并设置属性后,我尝试运行应用程序,但出现了错误。 我认为值得注意的是,我没有,也不打算实现SpringCloud。只有邮递服务。 不理解为什么spring boot需要来自这些包的一些服务 尝试了不同版本的依赖关系,定义了一些@Bean,但不认为这是问题所在 org.springframework.boot 春季启动邮件 2.0.1.1发布 日志: Error starting ApplicationContext. To d
springbootstartermail
添加依赖项并设置属性后,我尝试运行应用程序,但出现了错误。
我认为值得注意的是,我没有,也不打算实现SpringCloud。只有邮递服务。
不理解为什么spring boot需要来自这些包的一些服务
尝试了不同版本的依赖关系,定义了一些@Bean,但不认为这是问题所在
org.springframework.boot
春季启动邮件
2.0.1.1发布
日志:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-10-23 00:07:05.752 ERROR 19576 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 1 of method mailNotifier in de.codecentric.boot.admin.server.config.AdminServerNotifierAutoConfiguration$MailNotifierConfiguration required a bean of type 'de.codecentric.boot.admin.server.domain.entities.InstanceRepository' that could not be found.
The following candidates were found but could not be injected:
- Bean method 'instanceRepository' in 'AdminServerAutoConfiguration' not loaded because @ConditionalOnBean (types: de.codecentric.boot.admin.server.config.AdminServerMarkerConfiguration$Marker; SearchStrategy: all) did not find any beans of type de.codecentric.boot.admin.server.config.AdminServerMarkerConfiguration$Marker
Action:
Consider revisiting the entries above or defining a bean of type 'de.codecentric.boot.admin.server.domain.entities.InstanceRepository' in your configuration.
只想通过smtp.gmail.com发送电子邮件
希望springbootstartermail
就足够了
谢谢 正如LHCHIN所评论的,这是
spring boot admin starter server
和spring boot admin dependencies
中的问题,正如LHCHIN所评论的那样,这是一个spring boot admin starter server
和spring boot admin依赖项的问题,在
中,似乎您正在使用其他依赖项,例如导致错误的spring boot admin。如果您只想发送邮件,我认为将spring boot starter父项
、spring boot starter
和spring boot starter邮件
添加到POM文件中就足够了。似乎您正在使用其他依赖项,例如导致错误的spring boot Admin。如果您只想发送邮件,我认为将springbootstarter父项
,springbootstarter
和springbootstarter邮件
添加到POM文件中就足够了。