反射获取配置文件,执行方法案例
- pro.properties
className=com.xieth.jdkeight.domain.Student
methodName=eat
- 示例代码
className = com.xieth.jdkeight.domain.Student
methodName = eat
eat...
反射获取配置文件,执行方法案例
className=com.xieth.jdkeight.domain.Student
methodName=eat
className = com.xieth.jdkeight.domain.Student
methodName = eat
eat...
转载于:https://www.cnblogs.com/xietianhua/p/11342584.html