1. 程式人生 > >c3p0連線池xml配置檔案報錯的處理

c3p0連線池xml配置檔案報錯的處理

有下劃線並提示 The word is not correctly spelled, 此問題是Eclipse校驗單詞拼寫造成的。

解決辦法如下:

 

Window--Preference輸入spell,然後把第一個複選框“Enable spell checking“去掉對勾就可以了,如圖:

又出現了新的問題:

報錯:No grammar constraints (DTD or XML schema).....

 

解決辦法:

在xml檔案的頭部新增:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">