代碼保存之后,以下語句多了空格,刪掉即可:
service.setRealPath( " d: " );
urlMap.put( "
http://localhost:8080/index.jsp " , " /temp/index1.html " );
urlMap.put( "
http://www.yahoo.com.cn/ " , " /temp/index2.html " );
new FileOutputStream(file), " GBK " );
blogjava提供的編輯器功能一堆,華而不實,非常不好用,我試著重新編輯,結果無功而返。