HSQLDB问题:从Java开始code中的HSQL数据库 [英] HSQLDB issue: Starting the HSQL database from Java Code

查看:320
本文介绍了HSQLDB问题:从Java开始code中的HSQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我要运行HSQLDB为我的应用程序必须从命令提示符下做到这一点,所以我总是双击Server.bat(批处理文件)来启动它包含服务器:

when I have to run HSQLDB for my application i have to do it from command prompt, so I always double-click the Server.bat (batch file) to start the server which contain:

java -classpath ..\war\WEB-INF\lib\hsqldb.jar org.hsqldb.Server -database test

或命令提示符下键入启动服务器的命令。

or type the start server command from command prompt.

不过,我的问题是,我可以在我的Java $ C $从Java应用程序中单独编码Ç直接,无需启动启动HSQL数据库服务器?什么将是code?

But, my question is that can I start the HSQL database server by coding in my java code directly, no need to start it separately from the java application? what will be the code?

请注意,我使用Spring 2.5的,春天seecurity 2.0.4(注释禁用)。

Note that I am using spring 2.5, spring seecurity 2.0.4 (annotation disable).

感谢您。

推荐答案

什么类似的东西的 http://www.javablogging.com/embedded-database-in-java-use-of-hsqldb/

这篇关于HSQLDB问题:从Java开始code中的HSQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆