项目中一些旧工程运行情况处理
问题1、启动端口占用 2、打印编码乱码
ʮһ�� 13, 2023 9:33:26 ���� org.apache.coyote.AbstractProtocol init����: Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]java.lang.Exception: Socket bind failed: [730048] ?????????��???(��?��/???????/???)????��?? 原因因为tomcat启动的需要8080端口,而8080端口被占用了
解决 查询占用并taskkill查看到底是什么程序占用了8080端口 打开cmd 输入 netstat -ano|findstr 8080 然后执行taskkill -pid 8516 -f 干掉占用的进程
tomcat字符集 java.util.logging.ConsoleHandler.level = FINEjava.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatterjava.util.logging.ConsoleHandler.encoding = UTF-8 idea字符集