Skip to content

Commit

Permalink
fix: debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
devezhao committed Apr 29, 2020
1 parent 691b594 commit d5bca26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/rebuild/server/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.rebuild.api.ApiGateway;
import com.rebuild.api.BaseApi;
import com.rebuild.server.helper.AesPreferencesConfigurer;
import com.rebuild.server.helper.ConfigurableItem;
import com.rebuild.server.helper.SysConfiguration;
import com.rebuild.server.helper.cache.CommonCache;
Expand Down Expand Up @@ -193,7 +194,8 @@ protected static ApplicationContext debug() throws Exception {
if (APPLICATION_CTX == null) {
debugMode = true;
LOG.info("Rebuild Booting in DEBUG mode ...");


AesPreferencesConfigurer.initApplicationProperties();
long at = System.currentTimeMillis();
ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] { "application-ctx.xml" });
new Application(ctx).init(at);
Expand Down

0 comments on commit d5bca26

Please sign in to comment.