老师,像Spring或者Mybatis这些框架都实现了通过包名配置,扫描指定包下的文件。我也想实现一个这样的功能,可是我不知道如何通过File对象获取完整的类名……您看我的思路有什么问题吗?
https://github.com/michaelliao/warpdb/blob/master/src/main/java/com/itranswarp/warpdb/util/ClassUtils.java#L23
Sign in to make a reply
深蓝738
老师,像Spring或者Mybatis这些框架都实现了通过包名配置,扫描指定包下的文件。我也想实现一个这样的功能,可是我不知道如何通过File对象获取完整的类名……您看我的思路有什么问题吗?