Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
326b8ef1
Commit
326b8ef1
authored
Jul 17, 2026
by
pfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MQ配置文件修改
parent
6e06372f
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
84 additions
and
14 deletions
+84
-14
custom-server-app/pom.xml
+9
-0
custom-server-app/src/main/java/com/jomalls/custom/app/dto/warehouse/CustomWarehouseInfoUpdateDTO.java
+6
-0
custom-server-core/pom.xml
+0
-4
custom-server-starter/pom.xml
+9
-0
custom-server-starter/src/main/java/com/jomalls/custom/config/RabbitMqApplicationRunner.java
+24
-0
custom-server-starter/src/main/java/com/jomalls/custom/config/WebMvcConfiguration.java
+2
-1
custom-server-starter/src/main/resources/application-dev.yml
+11
-0
custom-server-starter/src/main/resources/application-prod.yml
+12
-2
custom-server-starter/src/main/resources/application-test.yml
+11
-0
pom.xml
+0
-7
No files found.
custom-server-app/pom.xml
View file @
326b8ef1
...
@@ -49,5 +49,14 @@
...
@@ -49,5 +49,14 @@
<groupId>
org.springframework.security
</groupId>
<groupId>
org.springframework.security
</groupId>
<artifactId>
spring-security-crypto
</artifactId>
<artifactId>
spring-security-crypto
</artifactId>
</dependency>
</dependency>
<!-- RabbitMQ -->
<dependency>
<groupId>
org.springframework.amqp
</groupId>
<artifactId>
spring-rabbit
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-amqp
</artifactId>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
custom-server-app/src/main/java/com/jomalls/custom/app/dto/warehouse/CustomWarehouseInfoUpdateDTO.java
View file @
326b8ef1
...
@@ -111,4 +111,10 @@ public class CustomWarehouseInfoUpdateDTO implements Serializable {
...
@@ -111,4 +111,10 @@ public class CustomWarehouseInfoUpdateDTO implements Serializable {
@Schema
(
description
=
"是否为正式仓库"
)
@Schema
(
description
=
"是否为正式仓库"
)
private
Boolean
formal
;
private
Boolean
formal
;
/**
* 1已上线,10待上线,20已下线,30待下线
*/
@Schema
(
description
=
"1已上线,10待上线,20已下线,30待下线"
)
private
Integer
status
;
}
}
custom-server-core/pom.xml
View file @
326b8ef1
...
@@ -63,10 +63,6 @@
...
@@ -63,10 +63,6 @@
<artifactId>
transmittable-thread-local
</artifactId>
<artifactId>
transmittable-thread-local
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.amqp
</groupId>
<artifactId>
spring-rabbit
</artifactId>
</dependency>
<dependency>
<groupId>
org.dromara.x-file-storage
</groupId>
<groupId>
org.dromara.x-file-storage
</groupId>
<artifactId>
x-file-storage-spring
</artifactId>
<artifactId>
x-file-storage-spring
</artifactId>
</dependency>
</dependency>
...
...
custom-server-starter/pom.xml
View file @
326b8ef1
...
@@ -79,6 +79,15 @@
...
@@ -79,6 +79,15 @@
<groupId>
org.springframework.security
</groupId>
<groupId>
org.springframework.security
</groupId>
<artifactId>
spring-security-crypto
</artifactId>
<artifactId>
spring-security-crypto
</artifactId>
</dependency>
</dependency>
<!-- RabbitMQ -->
<dependency>
<groupId>
org.springframework.amqp
</groupId>
<artifactId>
spring-rabbit
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-amqp
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
custom-server-starter/src/main/java/com/jomalls/custom/config/RabbitMqApplicationRunner.java
0 → 100644
View file @
326b8ef1
package
com
.
jomalls
.
custom
.
config
;
import
com.jomalls.custom.app.mq.MqTool
;
import
com.jomalls.custom.enums.MqRoute
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.stereotype.Component
;
@Component
//被 spring 容器管理
@Order
(
1
)
//如果多个自定义的 ApplicationRunner ,用来标明执行的顺序
public
class
RabbitMqApplicationRunner
implements
ApplicationRunner
{
@Autowired
private
RabbitTemplate
rabbitTemplate
;
@Override
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
MqTool
.
init
(
rabbitTemplate
,
MqRoute
.
geList
());
}
}
\ No newline at end of file
custom-server-starter/src/main/java/com/jomalls/custom/config/WebMvcConfiguration.java
View file @
326b8ef1
...
@@ -37,7 +37,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -37,7 +37,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/api/v3/actuator/*"
,
"/api/v3/actuator/*"
,
"/.well-known/**"
,
"/.well-known/**"
,
"/favicon.ico"
,
"/favicon.ico"
,
"/static/**"
);
"/static/**"
,
"/rest/**"
);
}
}
/**
/**
...
...
custom-server-starter/src/main/resources/application-dev.yml
View file @
326b8ef1
...
@@ -12,6 +12,17 @@ spring:
...
@@ -12,6 +12,17 @@ spring:
port
:
6379
port
:
6379
password
:
joshine.dev
password
:
joshine.dev
database
:
7
database
:
7
# RabbitMQ配置
rabbitmq
:
host
:
172.16.19.99
#测试
port
:
5672
# AMQP协议端口
username
:
admin
password
:
joshine_mq$
#测试
virtual-host
:
/
#rabbitmq 的虚拟机
# 发送方确认回调
publisher-confirm-type
:
correlated
# 发送方返回
publisher-returns
:
true
# 令牌配置
# 令牌配置
token
:
token
:
header
:
Authorization
header
:
Authorization
...
...
custom-server-starter/src/main/resources/application-prod.yml
View file @
326b8ef1
...
@@ -12,6 +12,17 @@ spring:
...
@@ -12,6 +12,17 @@ spring:
port
:
6379
port
:
6379
password
:
joshine.dev
password
:
joshine.dev
database
:
7
database
:
7
# RabbitMQ配置
rabbitmq
:
host
:
47.122.114.252
#这里改为你自己的IP地址
port
:
5672
# AMQP协议端口
username
:
admin
password
:
joshine_mq$
virtual-host
:
/
# rabbitmq 的虚拟机
# 发送方确认回调
publisher-confirm-type
:
correlated
# 发送方返回
publisher-returns
:
true
# 令牌配置
# 令牌配置
token
:
token
:
header
:
Authorization
header
:
Authorization
...
@@ -45,4 +56,4 @@ dromara:
...
@@ -45,4 +56,4 @@ dromara:
end-point
:
oss-cn-hangzhou.aliyuncs.com
end-point
:
oss-cn-hangzhou.aliyuncs.com
bucket-name
:
jomalls-psd
bucket-name
:
jomalls-psd
domain
:
https://jomalls-psd.oss-cn-hangzhou.aliyuncs.com/
# 访问域名,注意“/”结尾,例如:https://abc.oss-cn-shanghai.aliyuncs.com/
domain
:
https://jomalls-psd.oss-cn-hangzhou.aliyuncs.com/
# 访问域名,注意“/”结尾,例如:https://abc.oss-cn-shanghai.aliyuncs.com/
base-path
:
custom/
# 基础路径
base-path
:
custom/
# 基础路径
\ No newline at end of file
custom-server-starter/src/main/resources/application-test.yml
View file @
326b8ef1
...
@@ -12,6 +12,17 @@ spring:
...
@@ -12,6 +12,17 @@ spring:
port
:
6379
port
:
6379
password
:
joshine.dev
password
:
joshine.dev
database
:
7
database
:
7
# RabbitMQ配置
rabbitmq
:
host
:
172.16.19.100
#这里改为你自己的IP地址
port
:
5672
# AMQP协议端口
username
:
admin
password
:
joshine_mq$@
virtual-host
:
/test-env
# rabbitmq 的虚拟机
# 发送方确认回调
publisher-confirm-type
:
correlated
# 发送方返回
publisher-returns
:
true
# 令牌配置
# 令牌配置
token
:
token
:
header
:
Authorization
header
:
Authorization
...
...
pom.xml
View file @
326b8ef1
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<x-file.version>
2.3.0
</x-file.version>
<x-file.version>
2.3.0
</x-file.version>
<aliyun-oss.version>
3.16.1
</aliyun-oss.version>
<aliyun-oss.version>
3.16.1
</aliyun-oss.version>
<spring-boot-starter-amqp.version>
2.5.15
</spring-boot-starter-amqp.version>
</properties>
</properties>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
@@ -135,12 +134,6 @@
...
@@ -135,12 +134,6 @@
<artifactId>
x-file-storage-spring
</artifactId>
<artifactId>
x-file-storage-spring
</artifactId>
<version>
${x-file.version}
</version>
<version>
${x-file.version}
</version>
</dependency>
</dependency>
<!-- RabbitMQ -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-amqp
</artifactId>
<version>
${spring-boot-starter-amqp.version}
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.aliyun.oss
</groupId>
<groupId>
com.aliyun.oss
</groupId>
<artifactId>
aliyun-sdk-oss
</artifactId>
<artifactId>
aliyun-sdk-oss
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment