項目中一些舊工程運行情況處理
問題
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 = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.ConsoleHandler.encoding = UTF-8