我想将我的 portlet 连接到 postgresql。但是我的 portlet 没有看到 jdbc。在我的 portlet 包中,我有两个类。Connection.java 和 TestDBPortlet.java。Connection.java 成功连接到 postgresql,但 TestDBPortlet.java 没有看到 jdbc。知道两者在同一个包中,它们必须具有相同的类,这是否正常?我在 tomcat/libs、tomcat/lib/ext 和 tomcat/webapps/root/web-inf/libs 中复制了 jbdc.jar,但没有任何变化。请帮帮我 !
慕神8447489
相关分类