Comments (2)
找到了, 准确位置在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.
啊... 自己解决啦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)
- 数据源跟表的映射问题
- dubbo的反序列化漏洞
- 是否能支持Springboot3呢? HOT 1
- 当主机多个ip,导致dubbo注册ip混乱问题 HOT 1
- 手机号码验证缺少最新的199等号段 HOT 2
- 错字受就是你了! (雾 HOT 1
- 关闭Paras和Sql指令输出 HOT 2
- 在插件的类加载器环境无法读取properties HOT 1
- httpPost 方法的参数如果是多层的对象有bug
- Axios跨域调用 预检使用OPTIONS报错 HOT 1
- 是否有支持nacos的计划? HOT 2
- xxl-job-executor-sample-jboot如何设置jboot参数 HOT 1
- 生成代码报错 HOT 1
- 请更新 Dubbo 坐标 HOT 1
- 升级到3.1.x之后,Dubbo配置无效 HOT 1
- JbootInvocation 没有重写Invocation setArg getArg 倒致参数不能向下传递 HOT 1
- jboot代码生成器优化建议 HOT 1
- 关于JbootGatewayConfig 方法添加支持需求 HOT 1
- 新增完整执行时间统计的建议 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jboot.