DtsAutoConfiguration.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2011-2020, baomidou (jobob@qq.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. * <p>
  8. * https://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.baomidou.mybatisplus.dts.config;
  17. import com.baomidou.mybatisplus.dts.parser.JacksonDtsParser;
  18. import com.baomidou.mybatisplus.dts.sender.RabbitRmtSender;
  19. import org.springframework.context.annotation.Bean;
  20. import org.springframework.context.annotation.Configuration;
  21. /**
  22. * Rabbit MQ 可靠消息配置
  23. *
  24. * @author jobob
  25. * @since 2019-04-19
  26. */
  27. @Configuration
  28. public class DtsAutoConfiguration {
  29. @Bean
  30. public JacksonDtsParser rmtParser() {
  31. return new JacksonDtsParser();
  32. }
  33. @Bean
  34. public RabbitRmtSender rmtSender() {
  35. return new RabbitRmtSender();
  36. }
  37. }