Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个连接到 mysql 数据库的 java 应用程序。我将库作为 ide netbenas 10 的请求导入并尝试了它的工作原理。但是当我以 jar 格式导出应用程序时,当我运行它时,与数据库的连接不再有效。有谁知道我该怎么做?
请在执行 Jar 时在类路径中添加 mysql jdbc jar。