参考:打成jar包放到tomcat/lib 目录下


运行时报错:
An error occurred at line: 9 in the generated java file
Only a type can be imported. **** resolves to a package

意思是说只有一个类能被导入,****是一个包。

把需要的java文件打成jar包,放到 tomcat/lib 目录下就行了