1. 程式人生 > >使用Eclipse啟動Tomcat8時出現 'Starting Tomcat v8.0 Server at localhost' has encountered a problem.

使用Eclipse啟動Tomcat8時出現 'Starting Tomcat v8.0 Server at localhost' has encountered a problem.

  • 問題1:
    使用Eclipse啟動Tomcat8時出現 ‘Starting Tomcat v8.0 Server at localhost’ has encountered a problem.Several ports (8005, 8009,8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port.To start this server you will need to stop the other process or change the port number(s).

  • 解決:啟動工作管理員,結束javaw.exe程序

  • 問題2:spring 3.2.2後springjdbc中不用queryForInt

  • 解決:spring 3.2.2之後,jdbctemplate中的queryForInt已經被取消了,可以用queryForObject代替

  • 問題3:ajax在google瀏覽器上失效的解決方案

  • 解決:google chrome是由於某種安全策略的需要,禁止訪問本地的ajax資源!使用本機IP來訪問SERVER端,而不要使用127.0.0.1或者是localhost