我有 Liferay 6.2,我想使用 Eclipse IDE 连接 mysql 数据库。如何连接它们以及我必须使用什么。请给我任何启动示例。
3734 次
1 回答
3
按照以下步骤->
- 创建一个新的 liferay 服务器(将其指向 liferay 门户)。
- 启动服务器。
- 当服务器启动时,点击 localhost:8080。
- 将显示一个用于数据库配置和用户配置的页面。
- 提供数据库名称和用户名和密码。
- 一旦你提供了,liferay 将使用该数据库。(显然该数据库应该在你的数据库中)
否则,您可以在 \liferay-portal-6.2.0-ce-ga1 目录中创建一个 portal-setup-wizard.properties 文件。然后添加以下条目。
admin.email.from.name=Test Test
jdbc.default.password=root
liferay.home=D:/5555555/liferay-portal-6.2.0-ce-ga1
admin.email.from.address=test@liferay.com
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.username=root
jdbc.default.url=jdbc:mysql://localhost/project_monitor_liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
setup.wizard.enabled=false
否则您可以点击以下链接
http://www.liferaysavvy.com/2013/12/liferay-62-portal-development.html
这里已经给出了一步一步的过程。如果您觉得有帮助,请将以上内容标记为答案,以便对其他人也有帮助。
要在 portlet 中使用服务构建器,您可以通过以下链接。了解如何创建 portlet 并在其中集成服务。
https://github.com/liferay/liferay-plugins/tree/master/portlets/sample-service-builder-portlet
http://www.liferaysavvy.com/2014/05/liferay-mvc-portlet-development-with.html
http://www.liferaysolution.com/2011/12/nice-video-tutorial-to-create-sample.html
http://innovationliferay.blogspot.in/p/service-builder-concept.html
否则,您可以
http://www.mpowerglobal.com/download-cookbook
从这本书中下载 liferay 食谱,其中包含您的所有查询。你只需要挖掘它并找到它。
于 2014-06-27T10:15:24.570 回答