Git Product home page Git Product logo

Comments (2)

hykilpikonna avatar hykilpikonna commented on June 14, 2024

找到了, 准确位置在JFinal的 start:227, ActiveRecordPlugin (com.jfinal.plugin.activerecord) 里面!

start:227, ActiveRecordPlugin (com.jfinal.plugin.activerecord)
startPlugins:128, Config (com.jfinal.core)
configPluginWithOrder:71, Config (com.jfinal.core)
configJFinal:56, Config (com.jfinal.core)
init:63, JFinal (com.jfinal.core)
init:49, JFinalFilter (com.jfinal.core)
proceed:111, LifecyleInterceptorInvocation (io.undertow.servlet.core)
createFilter:80, ManagedFilter (io.undertow.servlet.core)
call:585, DeploymentManagerImpl$2 (io.undertow.servlet.core)
call:550, DeploymentManagerImpl$2 (io.undertow.servlet.core)
call:42, ServletRequestContextThreadSetupAction$1 (io.undertow.servlet.core)
call:43, ContextClassLoaderSetupAction$1 (io.undertow.servlet.core)
start:592, DeploymentManagerImpl (io.undertow.servlet.core)
initUndertowServer:104, UnderTowServer (io.jboot.server.undertow)
start:192, UnderTowServer (io.jboot.server.undertow)
startServer:167, Jboot (io.jboot)
start:148, Jboot (io.jboot)
run:91, Jboot (io.jboot)
main:31, JbootDBTest (cc.moecraft.icq.plugins.osubot.osu)

from jboot.

hykilpikonna avatar hykilpikonna commented on June 14, 2024

啊... 自己解决啦w

// 找到JFinal的Config类的configJfinal(JFinalConfig jfinalConfig)方法
Class<?> configClass = Class.forName("com.jfinal.core.Config");
Method configJFinal = configClass.getDeclaredMethod("configJFinal", JFinalConfig.class);

// 因为它的访问级别是Package Private, 需要setAccessible(true)才能调用
configJFinal.setAccessible(true);

// 用Jboot的配置文件调用
configJFinal.invoke(null, new JbootAppConfig());

这样就可以用数据库了! 但是这样启动还是好慢...
测试了, 启动用了4911ms哇...

from jboot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.