From f1524159d5465a5e1409d3b72cc25cfeebd9ac07 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 2 Mar 2025 21:12:56 +0800 Subject: [PATCH] 1 --- .idea/misc.xml | 2 +- src/main/java/cn/van/business/mq/MessageProducerService.java | 2 -- src/main/resources/application-dev.yml | 5 +++-- src/main/resources/application.yml | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index c6eabde..8509f1a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,7 +8,7 @@ - + diff --git a/src/main/java/cn/van/business/mq/MessageProducerService.java b/src/main/java/cn/van/business/mq/MessageProducerService.java index 23410c0..a59a4ab 100644 --- a/src/main/java/cn/van/business/mq/MessageProducerService.java +++ b/src/main/java/cn/van/business/mq/MessageProducerService.java @@ -6,7 +6,6 @@ import org.apache.rocketmq.common.message.Message; import org.apache.rocketmq.spring.core.RocketMQTemplate; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** @@ -24,7 +23,6 @@ public class MessageProducerService { private final RocketMQTemplate rocketMQTemplate; - @Autowired public MessageProducerService(RocketMQTemplate rocketMQTemplate) { this.rocketMQTemplate = rocketMQTemplate; } diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index fe77fb6..6e7ad01 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -3,7 +3,7 @@ server: spring: application: name: jd - # 数据源配置 + #数据源配置 datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://192.168.8.88:3306/jd?characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8 @@ -16,13 +16,14 @@ spring: max-lifetime: 2000000 # 最大生命周期(毫秒) connection-timeout: 30000 # 连接超时时间(毫秒) pool-name: SpringBootHikariCP # 连接池名字 + servlet: multipart: # 单个文件大小 max-file-size: 20MB # 设置总上传的文件大小 max-request-size: 20MB - # MyWebMvcConfig中开启@EnableWebMvc则失效 + #MyWebMvcConfig中开启@EnableWebMvc则失效 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 85493b6..7970d11 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,7 +4,7 @@ spring: application: name: jd profiles: - active: dev + active: prod servlet: multipart: # 单个文件大小