Giter Site home page Giter Site logo

rabbitmqandemailsend's Introduction

RabbitMqAndEmailSend

使用springboot整合邮件发送和rabbitMq消息分发

使用方法

点开ConsumerTest测试类,允许test3测试即可,可以在yml文件中修改mail下的username,password修改成自己的账号,可以自定义接收人信息(receiver),邮件主题(messageSubject),邮件内容(messageContent)

说说其中遇到的bug或者新发现

在写EmailServiceImpl使用Autowired自动注入的时候因为,此包下并没有启动类,所以编写的yml文件,就无法被启动类识别,并注入属性,导致javaMailSender一直提示无法自动注入bean,一直报错。 解决办法是: 1.修改该模块下的yml文件的名字,改成例如:application-email.yml 2.在主启动类下的yml文件使用spring: profiles: active: email 引入yml文件

rabbitmqandemailsend's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.