{{theTime}}

Search This Blog

Total Pageviews

Java ClassLoader Help:

How to Load xml file located in a jar file.

Eg: If xml exists in com/tools/util/resources/data.xml, use ClassLoader to load the xml as Stream.

InputStream in = ClassLoader.getResourceAsStream("com/tools/util/resources/data.xml")

No comments:

Mysql - java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

Add allowPublicKeyRetrieval=true to the JDBC URL. jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false