Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java &引用;应用程序启动失败";spring引导启动程序邮件使用后_Java_Spring_Spring Boot_Email_Smtp - Fatal编程技术网

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文件中就足够了。