Netbean6.9 --- 有没有定义数据库连接的xml?
目标:
创建 Netbean 项目并放入存储库(任何)。当其他开发人员检查 Netbean 项目时,他们可以从 Netbean IDE 中“打开项目”并按“执行”打开浏览器并开始测试 Web 应用程序。
我编写了 REST
Web 应用程序(Toplink-essential、JAX-RS、SQL Server 2008
),这是其他人想要在 Netbean IDE 中打开的 Netbean 项目。
它实际上正在工作除了当有人在 Netbean 中“打开项目”时,她仍然必须转到“数据源”选项卡(“项目”和“文件”选项卡旁边),然后通过填写弹出表单(即键入主机)来手动创建数据库连接,数据库名称,选择驱动程序等)。
我在nbproject/setup/sun-resource.xml下发现数据库驱动程序和名称/密码已定义,但我们必须执行第一步(正在填写前面描述的弹出表单)
有没有办法消除这个步骤?这意味着我可以在 xml 中的某个地方定义???
如果您需要更多说明,请告诉我。
Goal:
Create Netbean project and put on repository (any). When other developers check out the Netbean project, they can "open project" from Netbean IDE and press execute to open browser and start testing web application.
I wrote REST
web app (Toplink-essential, JAX-RS, SQL Server 2008
) and this is the Netbean project other people want to open in Netbean IDE.
It's working actually except that when someone "open project" in Netbean, she still has to go to Data Source tab (next to Project and File tab), then manually create database connection by filling in the popup form (i.e typing host, db name, pick driver etc).
I found out under nbproject/setup/sun-resource.xml db drivers and name/password are defined but we had to do the first step (which is filling the popup form described earlier)
Is there way to eliminate the step? That means I can somewhere define in xml ???
Please let me know if you need more clarification.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会对你的帖子发表评论,但我的自动取款机没有这样的选项,所以必须发布答案。
您使用什么数据库连接?
并尝试实现属性文件而不是 xml 文件!然后就非常简单了,像这样:
这可能有帮助
http://netbeans.org/kb/docs/java/project -setup.html#ide-concepts
i would comment on your post, but no such option for me atm, so have to post an answer.
What database conenction are you using ?
And try to implement a properties file rather than xml file !! and then its pretty straight forward, something like this:
this might help
http://netbeans.org/kb/docs/java/project-setup.html#ide-concepts