gpt4 book ai didi

mysql - 在 NetBeans 中从数据库创建实体时出错

转载 作者:行者123 更新时间:2023-11-30 23:53:28 26 4
gpt4 key购买 nike

在 NetBeans 中从数据库创建实体类时遇到问题。当我尝试这样做时,我收到以下消息:

The name of the driver class for the datasource is missing

我无法理解在创建与 mysql 数据库的连接时我遗漏了什么。我在哪里错过了驱动程序类的设置名称?

最佳答案

为 Java EE 应用程序创建时出现问题。在 java se 中运行良好。在 java ee 中需要使用 DataSource。

关于mysql - 在 NetBeans 中从数据库创建实体时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17093242/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com