当前位置:   article > 正文

onlyoffice开发java,JavaOnlyOffice

onlyoffice java二次开发

Build instruction

At first, You need to install oracle-java8-installer

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

Edit the settings.properties configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed

nano src/main/resources/settings.properties

Edit the following lines:

files.docservice.url.converter=https://documentserver/ConvertService.ashx

files.docservice.url.tempstorage=https://documentserver/ResourceService.ashx

files.docservice.url.api=https://documentserver/web-apps/apps/api/documents/api.js

files.docservice.url.preloader=https://documentserver/web-apps/apps/api/documents/cache-scripts.html

Install Maven:

apt-get install maven

And build:

mvn package

After it, all bin files will be passed to ./target folder

Build from docker

Edit the settings.properties configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed

nano src/main/resources/settings.properties

Edit the following lines. You need to change documentserver to your documentserver:

files.docservice.url.converter=https://documentserver/ConvertService.ashx

files.docservice.url.tempstorage=https://documentserver/ResourceService.ashx

files.docservice.url.api=https://documentserver/web-apps/apps/api/documents/api.js

files.docservice.url.preloader=https://documentserver/web-apps/apps/api/documents/cache-scripts.html

Run next command in java example directory:

docker-compose up

After it, all bin files will be passed to ./target folder

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/676872
推荐阅读
相关标签
  

闽ICP备14008679号