Home > Back-end >  Read the properties file using the reflection mechanism
Read the properties file using the reflection mechanism

Time:02-16

Reflection mechanism can be used to read the value of the properties file
Can output as usual "MySql" string, using the className of the string and then in the Class. The class.forname (className) operation error,

CodePudding user response:

The value of the English double quotes to remove the properties file

CodePudding user response:

"MySql" double quotes to remove
In addition, it is best to take the package path, XXX, yyy, ZZZ. MySql this form, otherwise the class name repetition error will
  • Related