怎么设置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
后可能需要重新检查和调整这个设置。