Bug fixes and optimizations

（1）fixed bug
（2）update testsuite:use component-scan
（3）update : generateEntity param: FileInputStream -> InputStream