为了账号安全,请及时绑定邮箱和手机立即绑定

JavaMailSender 自动注入 显示错误!

JavaMailSender 自动注入 显示错误!

真傻 2018-12-14 16:57:55
Error creating bean with name 'testController': Unsatisfied dependency expressed through field 'mailSender'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.mail.javamail.JavaMailSender' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}一加上@AutowiredJavaMailSender mailSender 就会报错...
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 13389 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信