From 050291d6f08fb0faf4206ca538dad013f7693b8f Mon Sep 17 00:00:00 2001 From: biezhi Date: Wed, 4 Apr 2018 20:41:12 +0800 Subject: [PATCH] :arrow_up: upgrade blade --- pom.xml | 2 +- src/main/java/com/tale/controller/IndexController.java | 2 +- src/main/java/com/tale/init/TaleConst.java | 2 +- src/main/java/com/tale/service/SiteService.java | 1 + src/main/resources/app.properties | 3 ++- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index f2525f7a..9d9372cf 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 3.21.0.1 - 2.0.7-R2 + 2.0.7-R3 0.0.7 0.1.2 0.0.2 diff --git a/src/main/java/com/tale/controller/IndexController.java b/src/main/java/com/tale/controller/IndexController.java index d2ccb275..8453e2f7 100644 --- a/src/main/java/com/tale/controller/IndexController.java +++ b/src/main/java/com/tale/controller/IndexController.java @@ -61,7 +61,7 @@ public class IndexController extends BaseController { * @return */ @GetRoute - public String index(Request request, @Param(defaultValue = "12") Integer limit) { + public String index(Request request, @Param(defaultValue = "12") int limit) { return this.index(request, 1, limit); } diff --git a/src/main/java/com/tale/init/TaleConst.java b/src/main/java/com/tale/init/TaleConst.java index 7362cfdc..d815dacd 100644 --- a/src/main/java/com/tale/init/TaleConst.java +++ b/src/main/java/com/tale/init/TaleConst.java @@ -20,7 +20,7 @@ public class TaleConst { public static Boolean INSTALLED = false; public static Boolean ENABLED_CDN = true; public static Environment BCONF = null; - + /** * 最大页码 */ diff --git a/src/main/java/com/tale/service/SiteService.java b/src/main/java/com/tale/service/SiteService.java index 903b5619..00d4f639 100644 --- a/src/main/java/com/tale/service/SiteService.java +++ b/src/main/java/com/tale/service/SiteService.java @@ -15,6 +15,7 @@ import com.tale.utils.MapCache; import com.tale.utils.TaleUtils; import com.tale.utils.ZipUtils; + import io.github.biezhi.anima.enums.OrderBy; import io.github.biezhi.anima.page.Page; diff --git a/src/main/resources/app.properties b/src/main/resources/app.properties index 398a78e1..1b79a805 100644 --- a/src/main/resources/app.properties +++ b/src/main/resources/app.properties @@ -1,4 +1,4 @@ -app.name=Tale (\u584c\u4e86) +app.name=Tale #app.max-file-size=20480 app.devMode=true mvc.view.404=/comm/error_404.html @@ -8,4 +8,5 @@ app.support_163_music=true app.support_gist=true com.blade.logger.org.sql2o=debug +com.blade.logger.com.blade.server.netty.StaticFileHandler=warn com.blade.logger.dir=./logs \ No newline at end of file