想起几年前Re: run servlet from command line?# Java - 爪哇娇娃
d*r
1 楼
想起几年以前的糗事:
几年前servlet技术刚出来的时候我就开始用了,但还不会在线调试。
写好code编译后在服务器上跑,靠写log文件进行debug,那叫一个累啊。
后来发现可以在JBuilder里run一个Java Web Server,
通过配置让servlet在Java Web Server里运行,(相当于自己配了一个container)
这样就实现了在IDE环境里调试,那叫一个爽啊。
真后悔没早点引进这个“先进技术”。
而且那时还没有log4j,code里无数的 log语句,简直惨不忍睹。
现在回想起来不堪回首啊。
依赖别的实现,要运行需要container提供环境。启动container当然可以通过command
run
几年前servlet技术刚出来的时候我就开始用了,但还不会在线调试。
写好code编译后在服务器上跑,靠写log文件进行debug,那叫一个累啊。
后来发现可以在JBuilder里run一个Java Web Server,
通过配置让servlet在Java Web Server里运行,(相当于自己配了一个container)
这样就实现了在IDE环境里调试,那叫一个爽啊。
真后悔没早点引进这个“先进技术”。
而且那时还没有log4j,code里无数的 log语句,简直惨不忍睹。
现在回想起来不堪回首啊。
依赖别的实现,要运行需要container提供环境。启动container当然可以通过command
run