From afb088b35b01ceab763081810a6e964c23d0cef8 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 23 九月 2022 15:37:37 +0800 Subject: [PATCH] 数据库迁移修改 --- flower_city/src/main/java/com/dg/core/exception/file/MessageUtils.java | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/util/MessageUtils.java b/flower_city/src/main/java/com/dg/core/exception/file/MessageUtils.java similarity index 68% rename from flower_city/src/main/java/com/dg/core/util/MessageUtils.java rename to flower_city/src/main/java/com/dg/core/exception/file/MessageUtils.java index 2977781..d3cf7ef 100644 --- a/flower_city/src/main/java/com/dg/core/util/MessageUtils.java +++ b/flower_city/src/main/java/com/dg/core/exception/file/MessageUtils.java @@ -1,6 +1,5 @@ -package com.dg.core.util; +package com.dg.core.exception.file; -import com.dg.core.spring.SpringUtils; import org.springframework.context.MessageSource; import org.springframework.context.i18n.LocaleContextHolder; @@ -9,17 +8,17 @@ * * @author ruoyi */ -public class MessageUtils -{ +public class MessageUtils { /** * 根据消息键和参数 获取消息 委托给spring messageSource * - * @param code 消息键 - * @param args 参数 + * @param code + * 消息键 + * @param args + * 参数 * @return 获取国际化翻译值 */ - public static String message(String code, Object... args) - { + public static String message(String code, Object... args) { MessageSource messageSource = SpringUtils.getBean(MessageSource.class); return messageSource.getMessage(code, args, LocaleContextHolder.getLocale()); } -- Gitblit v1.7.1