Compare commits

...
2 Commits
Author SHA1 Message Date
wonder 2ba2711bf1 🔄Update: 修改RabbitMQ连接地址为localhost 2025-10-14 20:29:34 +08:00
wonder 9e63ed6f4f ♻️Refactor: SpringBoot 2.x 迁移至 SpringBoot 3.x 2025-10-14 20:29:16 +08:00
9 changed files with 14 additions and 9 deletions
@@ -12,7 +12,7 @@ public class BiInitMain {
public static void main(String[] args) {
try {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("47.121.181.112");
factory.setHost("localhost");
factory.setVirtualHost("/bi");
factory.setUsername("wonder");
factory.setPassword("Dn293830");
+1 -1
View File
@@ -49,7 +49,7 @@ spring:
# 大小限制
max-file-size: 10MB
rabbitmq:
host: 47.121.181.112
host: localhost
port: 5672
password: Dn293830
username: wonder
@@ -1,6 +1,6 @@
package com.wonder.bi;
import javax.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@@ -1,9 +1,9 @@
package com.wonder.bi.bizmq;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
@SpringBootTest
class MyMessageProducerTest {
@@ -1,6 +1,7 @@
package com.wonder.bi.manager;
import javax.annotation.Resource;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@@ -1,10 +1,11 @@
package com.wonder.bi.manager;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
@SpringBootTest
class OpenAiManagerTest {
@@ -1,9 +1,10 @@
package com.wonder.bi.manager;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
@SpringBootTest
class RedisLimiterManagerTest {
@@ -1,9 +1,10 @@
package com.wonder.bi.mapper;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@@ -1,6 +1,7 @@
package com.wonder.bi.service;
import javax.annotation.Resource;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;