将dspace整合到java项目中
来源:互联网 发布:手机gps测试软件 编辑:程序博客网 时间:2024/05/21 09:10
1 安装完成DSpace系统后,配置/dspace/config/dspace.cfg文件(安装路径、ip、数据库连接配置等, 及到地址的用ip代替localhost),新增一个系统用户(如kp@163.com)
2 通过http://ip:port/jspui/ 入口增加一个community,在此community上增加一个collection,通过查询dspace数据库表collection得到此collection的collection_id
3 进入到 /项目/WebRoot/WEB-INF/classes 目录,检查application.properties文件所配置的dspace数据库ip地址、用户名以及密码,修改dspace.cfg文件,查找dspace.dir,确定本机存在此路径,确定${dspace.dir}/config/下面存在default.license和license.txt文件
4 在dspace.cfg中查找dspace.eperson ,做如下修改:dspace.eperson = kp@163.com(根据步骤一所建的用户修改),查找dspace.collection,如下修改:dspace.collectionid = 1 (根据步骤二所建的collection_id)
5 相文配置文件如下:
------------------------------dspace.cfg---------------------------------
#dspace安装目录,只对于引用的dspace在本机的情况下
dspace.dir = /usr/local/dspace
#上传目录
upload.dir = 这个上传目录
#dspace用户
dspace.eperson = kp@163.com
#在dspace中建的collection ID 在postgresql中查看
dspace.collectionid = 1
#对应的数据库地址
db.url = jdbc:postgresql://IP:5432/dspace
--------------------------------application.properties---------------------
#postgresql version database setting
jdbc.postgresql.driver=org.postgresql.Driver
jdbc.postgresql.url=jdbc:postgresql://IP:5432/dspace
jdbc.postgresql.username=dspace
jdbc.postgresql.password=dspace
----------------------------------default.license---------------------------
NON-EXCLUSIVE DISTRIBUTION LICENSE
By signing and submitting this license, you (the author(s) or copyright
owner) grants to DSpace University (DSU) the non-exclusive right to reproduce,
translate (as defined below), and/or distribute your submission (including
the abstract) worldwide in print and electronic format and in any medium,
including but not limited to audio or video.
You agree that DSU may, without changing the content, translate the
submission to any medium or format for the purpose of preservation.
You also agree that DSU may keep more than one copy of this submission for
purposes of security, back-up and preservation.
You represent that the submission is your original work, and that you have
the right to grant the rights contained in this license. You also represent
that your submission does not, to the best of your knowledge, infringe upon
anyone's copyright.
If the submission contains material for which you do not hold copyright,
you represent that you have obtained the unrestricted permission of the
copyright owner to grant DSU the rights required by this license, and that
such third-party owned material is clearly identified and acknowledged
within the text or content of the submission.
IF THE SUBMISSION IS BASED UPON WORK THAT HAS BEEN SPONSORED OR SUPPORTED
BY AN AGENCY OR ORGANIZATION OTHER THAN DSU, YOU REPRESENT THAT YOU HAVE
FULFILLED ANY RIGHT OF REVIEW OR OTHER OBLIGATIONS REQUIRED BY SUCH
CONTRACT OR AGREEMENT.
DSU will clearly identify your name(s) as the author(s) or owner(s) of the
submission, and will not make any alteration, other than as allowed by this
license, to your submission.
-----------------------------------license.txt-----------------------------------
NOTE: PLACE YOUR OWN LICENSE HERE
This sample license is provided for informational purposes only.
NON-EXCLUSIVE DISTRIBUTION LICENSE
By signing and submitting this license, you (the author(s) or copyright
owner) grants to DSpace University (DSU) the non-exclusive right to reproduce,
translate (as defined below), and/or distribute your submission (including
the abstract) worldwide in print and electronic format and in any medium,
including but not limited to audio or video.
You agree that DSU may, without changing the content, translate the
submission to any medium or format for the purpose of preservation.
You also agree that DSU may keep more than one copy of this submission for
purposes of security, back-up and preservation.
You represent that the submission is your original work, and that you have
the right to grant the rights contained in this license. You also represent
that your submission does not, to the best of your knowledge, infringe upon
anyone's copyright.
If the submission contains material for which you do not hold copyright,
you represent that you have obtained the unrestricted permission of the
copyright owner to grant DSU the rights required by this license, and that
such third-party owned material is clearly identified and acknowledged
within the text or content of the submission.
IF THE SUBMISSION IS BASED UPON WORK THAT HAS BEEN SPONSORED OR SUPPORTED
BY AN AGENCY OR ORGANIZATION OTHER THAN DSU, YOU REPRESENT THAT YOU HAVE
FULFILLED ANY RIGHT OF REVIEW OR OTHER OBLIGATIONS REQUIRED BY SUCH
CONTRACT OR AGREEMENT.
DSU will clearly identify your name(s) as the author(s) or owner(s) of the
submission, and will not make any alteration, other than as allowed by this
license, to your submission.
补充收割入口:http://192.168.0.103:8080/oai/request
- 将dspace整合到java项目中
- 将BIRT整合到自己的Java项目中(一)
- 将BIRT整合到自己的Java项目中(二)
- 将BIRT整合到自己的Java项目中
- 将Mercurial整合到Flask项目中
- 将spring struts项目整合到一个项目中
- 将ReactNative项目整合到android项目中步骤
- Laravel-5.1 ---- 将mews captcha整合到项目中!
- flex+blazeds+java(将java整合到flex中)
- 将标注当前位置项目,整合到其他项目中碰到的问题。
- android学习笔记之JQuery整合--将JQuery集成到项目中
- android学习笔记之JQuery整合--将JQuery集成到项目中
- 将Office Web App整合到自己的项目中(WOPI Host 开发)
- 【教程】将CPPUnit整合到DevC++中
- 如何将ffmpeg整合到opencore中
- XboxLive 将整合到Windows 8 中
- 将jquery-easyui整合到delphi中
- 将gstreamer整合到android中
- test
- JS冒泡
- 数据库重启后的重连配置
- U-Boot启动过程完全分析 (转)
- 浅谈如何成为入门的硬件工程师
- 将dspace整合到java项目中
- 程序员如何有效做职业规划?
- 对IC 的小小认识
- 获得手机的宽度和高度像素
- poj 3356 AGTC
- 架构设计心得体会
- Spring
- 如何制作rpm包
- ie6下png阴影问题的解决方案