From 659c1b716647f55a515f66472368bdcf31bcb71c Mon Sep 17 00:00:00 2001 From: ronger Date: Mon, 30 Mar 2020 10:35:03 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/rymcu/vertical/util/BaiDuUtils.java | 2 +- src/main/java/com/rymcu/vertical/util/SpringContextHolder.java | 2 +- .../com/rymcu/vertical/web/api/comment/CommentController.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rymcu/vertical/util/BaiDuUtils.java b/src/main/java/com/rymcu/vertical/util/BaiDuUtils.java index 83e015f..ec6ce89 100644 --- a/src/main/java/com/rymcu/vertical/util/BaiDuUtils.java +++ b/src/main/java/com/rymcu/vertical/util/BaiDuUtils.java @@ -100,7 +100,7 @@ public class BaiDuUtils { },executor); } - public static void main(){ + public static void main(String[] args){ sendUpdateSEOData("https://rymcu.com"); } } diff --git a/src/main/java/com/rymcu/vertical/util/SpringContextHolder.java b/src/main/java/com/rymcu/vertical/util/SpringContextHolder.java index e35b0d1..b5dbf14 100644 --- a/src/main/java/com/rymcu/vertical/util/SpringContextHolder.java +++ b/src/main/java/com/rymcu/vertical/util/SpringContextHolder.java @@ -92,6 +92,6 @@ public class SpringContextHolder implements ApplicationContextAware, DisposableB * 检查ApplicationContext不为空. */ private static void assertContextInjected() { - Validate.validState(applicationContext != null, "applicaitonContext属性未注入, 请在applicationContext.xml中定义SpringContextHolder."); + Validate.validState(applicationContext != null, "application Context属性未注入, 请在applicationContext.xml中定义SpringContextHolder."); } } \ No newline at end of file diff --git a/src/main/java/com/rymcu/vertical/web/api/comment/CommentController.java b/src/main/java/com/rymcu/vertical/web/api/comment/CommentController.java index 814b625..07999fe 100644 --- a/src/main/java/com/rymcu/vertical/web/api/comment/CommentController.java +++ b/src/main/java/com/rymcu/vertical/web/api/comment/CommentController.java @@ -2,7 +2,6 @@ package com.rymcu.vertical.web.api.comment; import com.rymcu.vertical.core.result.GlobalResult; import com.rymcu.vertical.core.result.GlobalResultGenerator; -import com.rymcu.vertical.dto.ArticleDTO; import com.rymcu.vertical.entity.Comment; import com.rymcu.vertical.service.CommentService; import com.rymcu.vertical.web.api.exception.BaseApiException;