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.

相关推荐
Java内核笔记16 小时前
告别十亿美元的错误 : Spring Boot 4 空安全 (JSpecify) 实战
java·spring boot·后端
海棠Flower未眠18 小时前
SpringBoot 消息死信队列(荣耀典藏版)
java·数据库·spring boot
腾渊信息科技公司18 小时前
Spring Boot + TDengine:工业视觉检测数据实时同步方案实战
spring boot·后端·tdengine
weixin_BYSJ198720 小时前
「课设设计」springboot校园超市助购系统26449 (附源码)
java·javascript·spring boot·python·django·flask·php
奈何不吃鱼1 天前
【SpringBoot】业务多线程四大实战场景
java·spring boot·多线程
奶糖 肥晨1 天前
一次Spring Boot编译报错排查:三元运算符与包装类型的“隐形陷阱”
java·spring boot·后端
一只小小Java1 天前
Naocs本地部署&安装3.2.3+Spring boot 3.2.0
java·spring boot·后端·nacos
JL151 天前
Spring Boot vs Gin:Java 人搭第一个 Go REST API
java·spring boot·gin
码兄科技1 天前
实战:基于Spring Boot + UniApp的地理信息小程序开发
spring boot·后端·uni-app
豆瓣鸡2 天前
Guava RateLimiter 限流实战:从令牌桶原理到 Nacos 动态配置
spring boot·微服务·nacos·guava