我使用 Spring Framework 3.x、jetty-8.1.10.v20130312、IntelliJ IDEA 12.1.4、Maven。我注意到,从一段时间以来,当我想为 Web 应用程序调试 Java 代码时,我不得不等待太多时间。如果我在 IDEA 中运行没有调试的应用程序,那么就可以了。
在调试中:
2013-08-27 16:02:08.107:INFO:oejs.Server:jetty-8.1.10.v20130312
2013-08-27 16:02:09.706:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2013-08-27 16:02:16.157:INFO:/:No Spring WebApplicationInitializer types detected on classpath
2013-08-27 16:02:16.600:INFO:/:Initializing Spring root WebApplicationContext
2013-08-27 16:05:23.671:INFO:oejs.AbstractConnector:Started
SelectChannelConnector@0.0.0.0:9110
[INFO] Started Jetty Server
无需调试即可运行:
2013-08-27 16:17:22.651:INFO:oejs.Server:jetty-8.1.10.v20130312
2013-08-27 16:17:24.286:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2013-08-27 16:17:30.368:INFO:/:No Spring WebApplicationInitializer types detected on classpath
2013-08-27 16:17:30.788:INFO:/:Initializing Spring root WebApplicationContext
2013-08-27 16:17:40.317:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9110
[INFO] Started Jetty Server
如何解决性能缓慢的问题?