Run the OnlyOffice Java Spring demo project in local

Content

  • [1.Download the sample project in java](#1.Download the sample project in java)
  • [2.Run the project](#2.Run the project)
  • [3.Test the example document](#3.Test the example document)

Before you run your java Spring project in your local server, there are several prepare works:

  1. Remote onlyoffice server is running
  2. The local java environment can run java application: JDK 11 or later version, maven

1.Download the sample project in java

Link: download the sample code in official website

document properties setting

propeties 复制代码
# the server of local spring project
server. Address=192.166.64.5
server.Port=4000
# the directory to store the files in local server
storage-folder = app_data

# documentary  server, we user docker image in a  ubuntu virtual machine. If you don't have install the OnlyOffice, you could watch my other blog.

files.docservice.url.site=http://192.166.64.26:8800/


# You have to attention this setting, if you set the JWT function in OnlyOffice
files.docservice.secret=my_jwt_secret

2.Run the project

Use this terminal to get IP of local server

shell 复制代码
 ifconfig

3.Test the example document

You can find the setting of OnlyOffice welcome page:

run these command in document server.

in you browser, you will get the an online editor.

相关推荐
callJJ10 小时前
Spring Data Redis 两种编程模型详解:同步 vs 响应式
java·spring boot·redis·python·spring
海兰10 小时前
【第27篇】Micrometer + Zipkin
人工智能·spring boot·alibaba·spring ai
海兰11 小时前
【第28篇】可观测性实战:LangFuse 方案详解
人工智能·spring boot·alibaba·spring ai
RuoyiOffice12 小时前
SpringBoot+Vue3 企业考勤如何处理法定假期?节假日方案、调休补班与工作日判断链路拆解
spring boot·后端·vue·anti-design-vue·ruoyioffice·假期·人力
xmjd msup12 小时前
spring security 超详细使用教程(接入springboot、前后端分离)
java·spring boot·spring
9523613 小时前
SpringBoot统一功能处理
java·spring boot·后端
rleS IONS13 小时前
SpringBoot中自定义Starter
java·spring boot·后端
TeDi TIVE14 小时前
springboot和springframework版本依赖关系
java·spring boot·后端
二哈赛车手14 小时前
新人笔记---ES和kibana启动问题以及一些常用的linux的错误排查方法,以及ES,数据库泄密解决方案[超详细]
java·linux·数据库·spring boot·笔记·elasticsearch
小编码上说17 小时前
LSH(局部敏感哈希)分桶,海量数据下的相似性搜索解决方案
java·spring boot·缓存·langchain4j·lsh·局部敏感哈希·ai调用优化