24282 8 months ago
parent
commit
a1d90c7c6c

+ 15 - 0
jy-starter/src/main/resources/application-prod.yml

@@ -23,6 +23,21 @@ spring:
           username: root
           password: PdKKy%vZ)2mGykg
 
+  rabbitmq:
+    port: 5672
+    host: 127.0.0.1
+    username: JyByteSailingAdmin
+    password: ds7us8nqt@777s
+    #这个配置是保证提供者确保消息推送到交换机中,不管成不成功,都会回调
+    publisher-confirm-type: correlated
+    #保证交换机能把消息推送到队列中
+    publisher-returns: true
+    virtual-host: JyByteSailingProd
+    #这个配置是保证消费者会消费消息,手动确认
+    listener:
+      simple:
+        acknowledge-mode: manual
+
   data:
     redis:
       # 地址

+ 2 - 0
jy-ui/src/components/FlieUpload/index.vue

@@ -4,6 +4,8 @@ import { getToken, removeToken } from '@/utils'
 import { ElMessage } from 'element-plus'
 import router from '@/router'
 
+const LOGIN_URL = import.meta.env.VITE_LOGIN_URL
+
 const props = withDefaults(
   defineProps<{
     modelValue: string | undefined