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.

相关推荐
hdsoft_huge9 小时前
Java & Spring Boot常见异常全解析:原因、危害、处理与防范
java·开发语言·spring boot
AD钙奶-lalala12 小时前
SpringBoot实现WebSocket服务端
spring boot·后端·websocket
毕设源码-朱学姐13 小时前
【开题答辩全过程】以 4S店汽车维修保养管理系统为例,包含答辩的问题和答案
java·spring boot·汽车
BXCQ_xuan14 小时前
软件工程实践二:Spring Boot 知识回顾
java·spring boot·后端
wuxuanok14 小时前
SpringBoot -原理篇
java·spring boot·spring
云动雨颤14 小时前
Spring Boot配置优化:Tomcat+数据库+缓存+日志,全场景教程
数据库·spring boot·tomcat
二饭14 小时前
Spring Boot 项目启动报错:MongoSocketOpenException 连接被拒绝排查日记
java·spring boot·后端
xkroy17 小时前
用户登录
spring boot
lssjzmn17 小时前
基于Spring Boot与Micrometer的系统参数监控指南
java·spring boot·数据可视化
BXCQ_xuan17 小时前
软件工程实践四:MyBatis-Plus 教程(连接、分页、查询)
spring boot·mysql·json·mybatis