Generator 无法动态生成

QQ截图20171030153740.png

控制台输出如下:

Generate base model ...

Generate model ...

Generate MappingKit file ...

Generate DataDictionary file ...

Generate complete in 120 seconds.

Disconnected from the target VM, address: '127.0.0.1:51791', transport: 'socket'


Process finished with exit code 0

这是什么情况?


评论区

Irin.Chan

2017-10-30 17:05

这个应该是JFinal 官方的代码生成, 应该是生成成功的,具体生成代码的问题,你看看modelOutputDir, 和BaseModelOutputDir,, 后面两句是IDE的正常退出信息而已。

JFinal

2017-10-30 18:02

很可能是数据库连接有问题,生成时间花了 120 秒这肯定不正常,一般情是在 1 秒内完成

wuyuehu

2017-10-31 09:03

@JFinal 这是设置断点才花了这么久的!
Connected to the target VM, address: '127.0.0.1:49997', transport: 'socket'
十月 31, 2017 8:59:23 上午 com.mchange.v2.log.MLog
信息: MLog clients using java 1.4+ standard logging.
十月 31, 2017 8:59:24 上午 com.mchange.v2.c3p0.C3P0Registry
信息: Initializing c3p0-0.9.5-pre8 [built 04-April-2014 04:08:13 -0700; debug? true; trace: 10]
Build TableMeta ...
十月 31, 2017 8:59:24 上午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 2, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1hge0zb9rv24z99w8wwd0|3bb59c1b, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceUseNamedDriverClass -> false, identityToken -> 1hge0zb9rv24z99w8wwd0|3bb59c1b, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://127.0.0.1/ephone?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 20, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
Generate base model ...
Generate model ...
Generate MappingKit file ...
Generate DataDictionary file ...
Disconnected from the target VM, address: '127.0.0.1:49997', transport: 'socket'
Generate complete in 0 seconds.

Process finished with exit code 0

linkzz

2017-10-31 09:21

端口占用了

wuyuehu

2017-10-31 17:22

@Irin.Chan 就是路径问题!解决了!

alvin0

2018-01-20 15:25

@Irin.Chan 您好,jfinal-generator这个项目提示不存在呀?能给个链接地址吗?谢谢您!

Irin.Chan

2018-01-22 10:12

@alvin0 http://www.jfinal.com/project/91

热门反馈

扫码入社