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.

相关推荐
程序员阿明32 分钟前
flowable集成flowable及其运行示例spring boot后端
java·spring boot·后端
努力发光的程序员1 小时前
面试官与程序员谢飞机的3轮Java大厂面试问答实录:涵盖Spring Boot、微服务与数据库技术
java·jvm·spring boot·redis·面试·hibernate·microservices
zoyation2 小时前
Spring Boot多数据源
java·spring boot·后端
i220818 Faiz Ul2 小时前
在线预约导游|基于SSM+vue的在线预约导游系统(源码+数据库+文档)
java·前端·数据库·vue.js·spring boot·毕设·在线预约导游系统
绝知此事2 小时前
ELK 从入门到精通:Spring Boot 实战三部曲(二)—— 进阶特性与性能优化
spring boot·elk·性能优化
绝知此事2 小时前
ELK 从入门到精通:Spring Boot 实战三部曲(一)—— 基础核心与快速上手
spring boot·后端·elk
MaCa .BaKa2 小时前
56-非遗手工艺品定制平台系统
java·vue.js·spring boot·mysql·maven·非遗手工制作平台系统·非遗制作
莫寒清2 小时前
@CrossOrigin 注解
java·spring boot·后端
憧憬成为java架构高手的小白13 小时前
苍穹外卖--day09
java·spring boot·百度
Jasonakeke14 小时前
SpringBoot自动配置原理揭秘
java·spring boot·后端