错误提示:
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
解决办法:
1.检查对应的数据库JAR包是否导入工程
2.检查.classpath文件里是否引入<classpathentry exported="true" kind="lib" path="C:/workspace/jtds-1.2.jar"/>
3.检查对应的JAR包是否导入Tomcat下的/common/lib/目录下
java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
解决办法:
1.检查对应的数据库JAR包是否导入工程
2.检查.classpath文件里是否引入<classpathentry exported="true" kind="lib" path="C:/workspace/jtds-1.2.jar"/>
3.检查对应的JAR包是否导入Tomcat下的/common/lib/目录下