怎么设置windows下tomcat console界面 system.out.println 显示的行数?
@echo off mode con: lines=300 rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may find a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 ....
这样,每次运行startup.bat启动Tomcat时,都会先执行mode con: lines = 300命令来设置缓冲区大小,方便查看更多的System.out.println输出内容。不过要注意,这种方式可能会因为在startup.bat文件中添加自定义命令而与未来Tomcat版本的更新产生冲突,在更新Tomcat后可能需要重新检查和调整这个设置。
浙公网安备 33010602011771号