From eb5960822e7617f772681bd1ec4c12ecae6d99ae Mon Sep 17 00:00:00 2001 From: sy200 <2063514638@qq.com> Date: Mon, 7 Oct 2024 18:33:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:()=E4=BF=AE=E6=94=B9=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud-common/cloud-common-rabbit/pom.xml | 5 ++++- .../muyu/enterprise/controller/VehicleTypeController.java | 4 ++-- .../src/main/resources/bootstrap.yml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cloud-common/cloud-common-rabbit/pom.xml b/cloud-common/cloud-common-rabbit/pom.xml index fa6d383..6f64264 100644 --- a/cloud-common/cloud-common-rabbit/pom.xml +++ b/cloud-common/cloud-common-rabbit/pom.xml @@ -11,6 +11,9 @@ cloud-common-rabbit + + cloud-common-rabbit 模块,提供RabbitMq消息队列的相关配置 + 17 17 @@ -32,4 +35,4 @@ - \ No newline at end of file + diff --git a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/VehicleTypeController.java b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/VehicleTypeController.java index 011604b..068cd45 100644 --- a/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/VehicleTypeController.java +++ b/cloud-modules/cloud-modules-enterprise/cloud-modules-enterprise-server/src/main/java/com/muyu/enterprise/controller/VehicleTypeController.java @@ -48,7 +48,7 @@ public class VehicleTypeController { * 查询所有车辆类型 * @return */ - @RequestMapping(path = "/", method = RequestMethod.POST) + @RequestMapping(path = "/findAll", method = RequestMethod.POST) @Operation(summary = "车辆类型列表",description = "车辆类型列表") public Result> findAll(){ List list = vehicleTypeService.list(); @@ -58,7 +58,7 @@ public class VehicleTypeController { list.forEach(vehicleType -> { vehicleTypeCacheService.put(String.valueOf(vehicleType.getVehicleTypeId()), vehicleType); }); - return Result.success(); + return Result.success(list); } /** diff --git a/cloud-modules/cloud-modules-vehicle-gateway/src/main/resources/bootstrap.yml b/cloud-modules/cloud-modules-vehicle-gateway/src/main/resources/bootstrap.yml index 73addd9..303ca8a 100644 --- a/cloud-modules/cloud-modules-vehicle-gateway/src/main/resources/bootstrap.yml +++ b/cloud-modules/cloud-modules-vehicle-gateway/src/main/resources/bootstrap.yml @@ -7,7 +7,7 @@ nacos: addr: 47.101.49.53:8848 user-name: nacos password: nacos - namespace: warn + namespace: seven # SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all # Spring spring: