最近将老项目从JDK1.8 升级到 JDK11 其中用到了 text-context xml文件配置属性
example<entry key="pp.rest.service.id">example</entry>
<entry key="pp.rest.service.username">example</entry>
<entry key="pp.rest.service.password">example</entry>
<entry key="pp.rest.service.url">example</entry>
<entry key="adapter.isFollowRedirects">true</entry>
<entry key="adapter.readTimeout">30000</entry>
<entry key="adapter.connectionTimeout">30000</entry>
文件已经定义了 properties,但是依然报错:
Caused by: org.xml.sax.SAXParseException: Element type "properties" must be declared.