From db4c58217423de73d45a7826f4770c0a40e7b759 Mon Sep 17 00:00:00 2001 From: yangfuhai Date: Fri, 28 Dec 2018 10:04:30 +0800 Subject: [PATCH] v2.0-rc.2 --- changes.txt | 1 + src/main/java/io/jboot/JbootConsts.java | 2 +- src/main/java/io/jboot/app/JbootApplicationConfig.java | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changes.txt b/changes.txt index a59d8e0f7..e3dbc7d19 100644 --- a/changes.txt +++ b/changes.txt @@ -3,6 +3,7 @@ jboot v2.0-rc.2: 移除 jboot.app.hotSwapClassPrefix 的配置,直接使用 undertow.hotSwapClassPrefix 配置即可 修复 代码生成器生成的代码带有 @Singleton 注解的问题 优化 @RPCInject 中的 async 和 check 的类型 +优化 ClassScanner 会扫描到 JRE 的 Class 导致加载速度慢的问题 diff --git a/src/main/java/io/jboot/JbootConsts.java b/src/main/java/io/jboot/JbootConsts.java index 262e6e0a7..ce1645a51 100644 --- a/src/main/java/io/jboot/JbootConsts.java +++ b/src/main/java/io/jboot/JbootConsts.java @@ -24,7 +24,7 @@ */ public class JbootConsts { - public static String VERSION = "2.0-alpha.1"; + public static String VERSION = "2.0-rc.2"; public static final String ATTR_REQUEST = "REQUEST"; diff --git a/src/main/java/io/jboot/app/JbootApplicationConfig.java b/src/main/java/io/jboot/app/JbootApplicationConfig.java index c889ab082..249e2cbd1 100644 --- a/src/main/java/io/jboot/app/JbootApplicationConfig.java +++ b/src/main/java/io/jboot/app/JbootApplicationConfig.java @@ -15,12 +15,14 @@ */ package io.jboot.app; +import io.jboot.JbootConsts; import io.jboot.app.config.annotation.ConfigModel; @ConfigModel(prefix = "jboot.app") public class JbootApplicationConfig { private String mode = "dev"; + private String version = JbootConsts.VERSION; private boolean bannerEnable = true; private String bannerFile = "banner.txt"; private String jfinalConfig = "io.jboot.core.JbootCoreConfig"; @@ -34,6 +36,10 @@ public void setMode(String mode) { this.mode = mode; } + public String getVersion() { + return version; + } + public boolean isBannerEnable() { return bannerEnable; } @@ -64,6 +70,7 @@ public void setJfinalConfig(String jfinalConfig) { public String toString() { return "JbootApplication {" + " mode='" + mode + '\'' + + ", version='" + version + '\'' + ", jfinalConfig='" + jfinalConfig + '\'' + " }"; }