feat:() 新增MQ和Caffeine缓存库依赖 和 修改配置文件
parent
d1440fb706
commit
84b54e9116
|
@ -107,6 +107,18 @@
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- MQ -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- 引入Caffeine缓存库-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||||
|
<artifactId>caffeine</artifactId>
|
||||||
|
<version>3.0.5</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.processing.abstraction;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.muyu.processing.interfaces.EventInterface;
|
import com.muyu.processing.interfaces.EventInterface;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 事件处理抽象类
|
* 事件处理抽象类
|
||||||
|
@ -11,6 +12,7 @@ import com.muyu.processing.interfaces.EventInterface;
|
||||||
* @name:EventProcessor
|
* @name:EventProcessor
|
||||||
* @Date:2024/9/28 20:58
|
* @Date:2024/9/28 20:58
|
||||||
*/
|
*/
|
||||||
|
@Log4j2
|
||||||
public abstract class EventProcessor implements EventInterface {
|
public abstract class EventProcessor implements EventInterface {
|
||||||
|
|
||||||
private EventProcessor eventProcessor;
|
private EventProcessor eventProcessor;
|
||||||
|
|
|
@ -7,7 +7,7 @@ nacos:
|
||||||
addr: 47.101.49.53:8848
|
addr: 47.101.49.53:8848
|
||||||
user-name: nacos
|
user-name: nacos
|
||||||
password: nacos
|
password: nacos
|
||||||
namespace: seven
|
namespace: dev
|
||||||
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
|
|
Loading…
Reference in New Issue