JPA访问数据库的参数在哪啊?

kelly859 2008-09-03 02:47:25
小弟刚学JPA,它怎么 知道 要连接的 数据库呢?总得有个 数据源什么的吧

persistence.xml文件里也 没看到这方面的信息啊
...全文
59 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
reallystrange 2008-09-03
  • 打赏
  • 举报
回复
*-ds.xml file define the data source conf.
Data source is running as a service which is shared across all the components. So you should not find the conf details in any specific persistence.xml file.

6,787

社区成员

发帖
与我相关
我的任务
社区描述
JBoss技术交流
社区管理员
  • JBoss技术交流社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧